wiki.techinc.nl/tests/phpunit/includes/NewDBTest.php
X! d0ee386dca NewDBTest does not need the function anymore.
Fixed bug that caused a catchable fatal error (fix from r79117)
2010-12-28 18:47:09 +00:00

35 lines
702 B
PHP

<?php
class NewDBTest extends MediaWikiTestCase {
function setUp() {
}
function tearDown() {
}
function addDBData() {
//Make a page
$article = new Article( Title::newFromText( 'Foobar' ) );
$article->doEdit( 'FoobarContent',
'',
EDIT_NEW,
false,
User::newFromName( 'UTSysop' ) );
}
function testBootstrapCreation() {
$article = new Article( Title::newFromText("UTPage") );
$this->assertEquals("UTContent", $article->fetchContent(), "Automatic main page creation");
$article = new Article( Title::newFromText("Foobar") );
$this->assertEquals("FoobarContent", $article->fetchContent(), "addDBData() adds to the database");
}
}