From e6c8c43356234ec4461739f2e9e5e55cc72ac636 Mon Sep 17 00:00:00 2001 From: daniel Date: Fri, 12 Oct 2012 15:39:01 +0200 Subject: [PATCH] Skip parser tests if main NS isn't wikitext. Change-Id: Ie3267e4db4246d522b6564204e9688258fc41324 --- tests/phpunit/includes/parser/NewParserTest.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/phpunit/includes/parser/NewParserTest.php b/tests/phpunit/includes/parser/NewParserTest.php index 8ddfa65e0e..804726b0a4 100644 --- a/tests/phpunit/includes/parser/NewParserTest.php +++ b/tests/phpunit/includes/parser/NewParserTest.php @@ -524,6 +524,14 @@ class NewParserTest extends MediaWikiTestCase { return; } + if ( !$this->isWikitextNS( NS_MAIN ) ) { + // parser tests frequently assume that the main namespace contains wikitext. + // @todo: When setting up pages, force the content model. Only skip if + // $wgtContentModelUseDB is false. + $this->markTestSkipped( "Main namespace does not support wikitext," + . "skipping parser test: $desc" ); + } + wfDebug( "Running parser test: $desc\n" ); $opts = $this->parseOptions( $opts ); -- 2.20.1