diff --git a/client/tests/phpunit/integration/includes/Hooks/SkinAfterBottomScriptsHandlerTest.php b/client/tests/phpunit/integration/includes/Hooks/SkinAfterBottomScriptsHandlerTest.php index 31e3e12d5f..b08e08de7e 100644 --- a/client/tests/phpunit/integration/includes/Hooks/SkinAfterBottomScriptsHandlerTest.php +++ b/client/tests/phpunit/integration/includes/Hooks/SkinAfterBottomScriptsHandlerTest.php @@ -4,8 +4,6 @@ use File; use MediaWiki\Language\Language; -use MediaWiki\Revision\RevisionLookup; -use MediaWiki\Revision\RevisionRecord; use MediaWiki\Title\Title; use Wikibase\Client\Hooks\LinkedDataSchemaGenerator; use Wikibase\Client\RepoLinker; @@ -38,8 +36,7 @@ public function testCreateSchema( $revisionTimestamp, callable $imageFactory, $d $generator = new LinkedDataSchemaGenerator( $this->createMock( Language::class ), $repoLinker, - WikibaseClient::getTermLookup(), - $this->createMockRevisionLookup( '1022523983' ) + WikibaseClient::getTermLookup() ); $title = $this->mockTitle( 'https://de.wikipedia.org/wiki', 'Douglas Adams' ); @@ -140,18 +137,4 @@ private function mockTitle( $baseURL, $titleText ) { return $mock; } - /** - * @param string|null $timestamp - * @return RevisionLookup - */ - private function createMockRevisionLookup( $timestamp ) { - $revisionRecord = $this->createMock( RevisionRecord::class ); - $revisionRecord->method( 'getTimestamp' ) - ->willReturn( $timestamp ); - $mockRevLookup = $this->createMock( RevisionLookup::class ); - $mockRevLookup->method( 'getFirstRevision' ) - ->willReturn( $revisionRecord ); - return $mockRevLookup; - } - }