Otherwise, running core tests with non-wikitext in the main
namespace fail with fatal error.
Change-Id: I895e7ee61ba80c0c345b6c05f05d05c368e52d59
protected function setUp() {
parent::setUp();
+ if ( !$this->isWikitextNS( NS_MAIN ) ) {
+ $this->markTestSkipped( 'Main namespace does not support wikitext.' );
+ }
+
+ $this->insertPages();
+
// Avoid special pages from extensions interferring with the tests
$this->setMwGlobals( 'wgSpecialPages', array() );
}
}
}
- public function addDBData() {
+ public function insertPages() {
$this->insertPage( 'Sandbox' );
$this->insertPage( 'Bar' );
$this->insertPage( 'Example' );