Index: trunk/phase3/tests/phpunit/includes/NewDBTest.php |
— | — | @@ -1,38 +0,0 @@ |
2 | | -<?php |
3 | | - |
4 | | -/** |
5 | | - * @group Database |
6 | | - */ |
7 | | -class NewDBTest extends MediaWikiTestCase { |
8 | | - |
9 | | - function setUp() { |
10 | | - } |
11 | | - |
12 | | - function tearDown() { |
13 | | - } |
14 | | - |
15 | | - function addDBData() { |
16 | | - |
17 | | - //Make a page |
18 | | - $article = new Article( Title::newFromText( 'Foobar' ) ); |
19 | | - $article->doEdit( 'FoobarContent', |
20 | | - '', |
21 | | - EDIT_NEW, |
22 | | - false, |
23 | | - User::newFromName( 'UTSysop' ) ); |
24 | | - } |
25 | | - |
26 | | - function testBootstrapCreation() { |
27 | | - |
28 | | - $article = new Article( Title::newFromText("UTPage") ); |
29 | | - |
30 | | - $this->assertEquals("UTContent", $article->fetchContent(), "Automatic main page creation"); |
31 | | - |
32 | | - $article = new Article( Title::newFromText("Foobar") ); |
33 | | - |
34 | | - $this->assertEquals("FoobarContent", $article->fetchContent(), "addDBData() adds to the database"); |
35 | | - |
36 | | - } |
37 | | - |
38 | | -} |
39 | | - |