diff options
Diffstat (limited to 'tests/phpunit/includes/parser/MagicVariableTest.php')
-rw-r--r-- | tests/phpunit/includes/parser/MagicVariableTest.php | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/phpunit/includes/parser/MagicVariableTest.php b/tests/phpunit/includes/parser/MagicVariableTest.php index 02a4a2583ae8..cc474ddf1190 100644 --- a/tests/phpunit/includes/parser/MagicVariableTest.php +++ b/tests/phpunit/includes/parser/MagicVariableTest.php @@ -11,9 +11,11 @@ * @file */ +use Wikimedia\TestingAccessWrapper; + /** * @group Database - * @covers Parser::getVariableValue + * @covers Parser::expandMagicVariable */ class MagicVariableTest extends MediaWikiTestCase { /** @@ -222,7 +224,7 @@ class MagicVariableTest extends MediaWikiTestCase { $this->assertSame( $expected, - $this->testParser->getVariableValue( $magic ), + TestingAccessWrapper::newFromObject( $this->testParser )->expandMagicVariable( $magic ), $msg ); } |