aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/ExtraParserTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/ExtraParserTest.php')
-rw-r--r--tests/phpunit/includes/ExtraParserTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/phpunit/includes/ExtraParserTest.php b/tests/phpunit/includes/ExtraParserTest.php
index 672b2395411a..6fdff0480c96 100644
--- a/tests/phpunit/includes/ExtraParserTest.php
+++ b/tests/phpunit/includes/ExtraParserTest.php
@@ -62,12 +62,13 @@ class ExtraParserTest extends MediaWikiIntegrationTestCase {
$options = ParserOptions::newFromUser( new User() );
RequestContext::getMain()->setTitle( $title );
+ RequestContext::getMain()->getWikiPage()->CustomTestProp = true;
$parsed = $this->parser->parse( $text, $title, $options )->getText();
$this->assertStringContainsString( 'apihelp-header', $parsed );
// Verify that this property wasn't wiped out by the parse
- $this->assertEquals( $title, RequestContext::getMain()->getTitle() );
+ $this->assertTrue( RequestContext::getMain()->getWikiPage()->CustomTestProp );
}
/**