Skip to content

Commit

Permalink
Also fix setMethods().
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Jan 24, 2024
1 parent 7b28253 commit a9f31df
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ public function testGetOpenUrl()
$fixture = $this->getJsonFixture('misc/testbug2.json');
$fields = $fixture['response']['docs'][0];
$mock = $this->getMockBuilder(\VuFind\RecordDriver\DefaultRecord::class)
->setMethods(['getBookOpenUrlParams'])
->onlyMethods(['getBookOpenUrlParams'])
->getMock();
$mock->setRawData($fields);
$mock->expects($this->any())
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ protected function getMockCommand(): ImportLokaliseCommand
{
return $this->getMockBuilder(ImportLokaliseCommand::class)
->setConstructorArgs([new ExtendedIniNormalizer()])
->setMethods(['writeToDisk'])
->onlyMethods(['writeToDisk'])
->getMock();
}
}

0 comments on commit a9f31df

Please sign in to comment.