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