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