X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fparser%2FParserPreloadTest.php;h=560b921a8dd6b3aac7a842f566c530899d3b7ee2;hb=90d4f56fe46140f9e97e2fa72698f98b57447fe5;hp=d12fee368ff92d2710c897f208d5b0a0430f0f48;hpb=c24ac2c87d9f9364745116947919cdb65a72fece;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/parser/ParserPreloadTest.php b/tests/phpunit/includes/parser/ParserPreloadTest.php index d12fee368f..560b921a8d 100644 --- a/tests/phpunit/includes/parser/ParserPreloadTest.php +++ b/tests/phpunit/includes/parser/ParserPreloadTest.php @@ -1,7 +1,34 @@ testParserOptions = ParserOptions::newFromUserAndLang( new User, $wgContLang ); + $this->testParserOptions = ParserOptions::newFromUserAndLang( new User, + MediaWikiServices::getInstance()->getContentLanguage() ); $this->testParser = new Parser(); $this->testParser->Options( $this->testParserOptions ); @@ -37,32 +63,23 @@ class ParserPreloadTest extends MediaWikiTestCase { unset( $this->title ); } - /** - * @covers Parser::getPreloadText - */ public function testPreloadSimpleText() { $this->assertPreloaded( 'simple', 'simple' ); } - /** - * @covers Parser::getPreloadText - */ public function testPreloadedPreIsUnstripped() { $this->assertPreloaded( '
monospaced
', '
monospaced
', - '
 in preloaded text must be unstripped (bug 27467)'
+			'
 in preloaded text must be unstripped (T29467)'
 		);
 	}
 
-	/**
-	 * @covers Parser::getPreloadText
-	 */
 	public function testPreloadedNowikiIsUnstripped() {
 		$this->assertPreloaded(
 			'[[Dummy title]]',
 			'[[Dummy title]]',
-			' in preloaded text must be unstripped (bug 27467)'
+			' in preloaded text must be unstripped (T29467)'
 		);
 	}