diff --git a/tests/phpunit/DiscussionParserTest.php b/tests/phpunit/DiscussionParserTest.php index 3eb876f62..391ff0788 100644 --- a/tests/phpunit/DiscussionParserTest.php +++ b/tests/phpunit/DiscussionParserTest.php @@ -1508,9 +1508,13 @@ TEXT ]; } - public static function getExemplarTimestamp() { - $title = Title::newMainPage(); - $user = User::newFromName( 'Test' ); + public function getExemplarTimestamp() { + $title = $this->getMockBuilder( Title::class ) + ->getMock(); + + $user = $this->getMockBuilder( User::class ) + ->getMock(); + $options = new ParserOptions; global $wgParser;