diff --git a/tests/phpunit/DiscussionParserTest.php b/tests/phpunit/DiscussionParserTest.php index d00349f63..a161cd07a 100644 --- a/tests/phpunit/DiscussionParserTest.php +++ b/tests/phpunit/DiscussionParserTest.php @@ -1487,11 +1487,9 @@ TEXT } public function getExemplarTimestamp() { - $title = $this->getMockBuilder( Title::class ) - ->getMock(); + $title = $this->createMock( Title::class ); - $user = $this->getMockBuilder( User::class ) - ->getMock(); + $user = $this->createMock( User::class ); $options = ParserOptions::newFromAnon();