We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2f0744b commit b566d2dCopy full SHA for b566d2d
1 file changed
tests/classes/services/ThothPublicationServiceTest.php
@@ -50,11 +50,14 @@ public function testRegisterPublication()
50
51
$mockRepository = $this->getMockBuilder(ThothPublicationRepository::class)
52
->setConstructorArgs([$this->getMockBuilder(ThothClient::class)->getMock()])
53
- ->setMethods(['add'])
+ ->setMethods(['add', 'getIdByType'])
54
->getMock();
55
$mockRepository->expects($this->once())
56
->method('add')
57
->will($this->returnValue('4296c934-0f05-4920-a208-a5ab214b908a'));
58
+ $mockRepository->expects($this->once())
59
+ ->method('getIdByType')
60
+ ->will($this->returnValue(null));
61
62
$mockPubFormat = $this->getMockBuilder(PublicationFormat::class)->getMock();
63
0 commit comments