6 class NewDBTest
extends MediaWikiTestCase
{
14 function addDBData() {
17 $article = new Article( Title
::newFromText( 'Foobar' ) );
18 $article->doEdit( 'FoobarContent',
22 User
::newFromName( 'UTSysop' ) );
25 function testBootstrapCreation() {
27 $article = new Article( Title
::newFromText("UTPage") );
29 $this->assertEquals("UTContent", $article->fetchContent(), "Automatic main page creation");
31 $article = new Article( Title
::newFromText("Foobar") );
33 $this->assertEquals("FoobarContent", $article->fetchContent(), "addDBData() adds to the database");