diff --git a/module/VuFindConsole/tests/unit-tests/src/VuFindTest/Command/ScheduledSearch/NotifyCommandTest.php b/module/VuFindConsole/tests/unit-tests/src/VuFindTest/Command/ScheduledSearch/NotifyCommandTest.php index 397e131aa85..81f23034bbb 100644 --- a/module/VuFindConsole/tests/unit-tests/src/VuFindTest/Command/ScheduledSearch/NotifyCommandTest.php +++ b/module/VuFindConsole/tests/unit-tests/src/VuFindTest/Command/ScheduledSearch/NotifyCommandTest.php @@ -30,7 +30,6 @@ namespace VuFindTest\Command\ScheduledSearch; use DateTime; -use Laminas\Mvc\I18n\Translator; use PHPUnit\Framework\MockObject\MockObject; use Symfony\Component\Console\Tester\CommandTester; use VuFind\Db\Entity\SearchEntityInterface; @@ -302,7 +301,7 @@ public function testNotificationsWithNewSearchResults(): void $this->equalTo('My Site: translated text'), $this->equalTo($message) ); - $translator = $this->container->createMock(Translator::class); + $translator = $this->container->createMock(\Laminas\Mvc\I18n\Translator\Translator::class); $translator->expects($this->once())->method('translate') ->with($this->equalTo('Scheduled Alert Results')) ->willReturn('translated text');