Skip to content

Commit

Permalink
Fix broken test.
Browse files Browse the repository at this point in the history
  • Loading branch information
demiankatz committed Dec 17, 2024
1 parent afdc906 commit 120fc13
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@
namespace VuFindTest\Command\ScheduledSearch;

use DateTime;
use Laminas\I18n\Translator\Translator;
use PHPUnit\Framework\MockObject\MockObject;
use Symfony\Component\Console\Tester\CommandTester;
use VuFind\Db\Entity\SearchEntityInterface;
Expand Down Expand Up @@ -301,7 +302,7 @@ public function testNotificationsWithNewSearchResults(): void
$this->equalTo('My Site: translated text'),
$this->equalTo($message)
);
$translator = $this->container->createMock(\Laminas\Mvc\I18n\Translator::class);
$translator = $this->container->createMock(Translator::class);
$translator->expects($this->once())->method('translate')
->with($this->equalTo('Scheduled Alert Results'))
->willReturn('translated text');
Expand Down

0 comments on commit 120fc13

Please sign in to comment.