From 62924fb13cc81e269ae50dd3bb92ab93a89aeeaf Mon Sep 17 00:00:00 2001 From: IanM Date: Mon, 11 Nov 2024 20:28:53 +0000 Subject: [PATCH] update signature --- tests/unit/SaveBestAnswerToDatabaseTest.php | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/tests/unit/SaveBestAnswerToDatabaseTest.php b/tests/unit/SaveBestAnswerToDatabaseTest.php index 9421468..bf4326e 100644 --- a/tests/unit/SaveBestAnswerToDatabaseTest.php +++ b/tests/unit/SaveBestAnswerToDatabaseTest.php @@ -46,10 +46,7 @@ public function testHandle_WhenKeyIsMissing_ReturnsWithoutAction() $this->sut = m::mock(SaveBestAnswerToDatabase::class.'[removeBestAnswer,setBestAnswer]', [ m::mock(NotificationSyncer::class), - m::mock(Dispatcher::class), - m::mock(TranslatorInterface::class), m::mock(BestAnswerRepository::class), - m::mock(SettingsRepositoryInterface::class), ])->shouldAllowMockingProtectedMethods(); $this->sut->shouldNotReceive('removeBestAnswer'); @@ -70,10 +67,7 @@ public function testHandle_DiscussionDoesNotExistOrMatches_ReturnsWithoutAction( $this->sut = m::mock(SaveBestAnswerToDatabase::class.'[removeBestAnswer,setBestAnswer]', [ m::mock(NotificationSyncer::class), - m::mock(Dispatcher::class), - m::mock(TranslatorInterface::class), m::mock(BestAnswerRepository::class), - m::mock(SettingsRepositoryInterface::class), ])->shouldAllowMockingProtectedMethods(); $this->sut->shouldNotReceive('removeBestAnswer'); @@ -98,9 +92,7 @@ public function testHandle_IdIsZero_CallsRemoveBestAnswer() $this->sut = m::mock(SaveBestAnswerToDatabase::class.'[removeBestAnswer]', [ $notifications, m::mock(Dispatcher::class), - m::mock(TranslatorInterface::class), m::mock(BestAnswerRepository::class), - m::mock(SettingsRepositoryInterface::class), ])->shouldAllowMockingProtectedMethods(); $this->sut->shouldReceive('removeBestAnswer')->once(); @@ -124,9 +116,7 @@ public function testHandle_IdIsNotZero_CallsSetBestAnswer() $this->sut = m::mock(SaveBestAnswerToDatabase::class.'[setBestAnswer]', [ $notifications, m::mock(Dispatcher::class), - m::mock(TranslatorInterface::class), m::mock(BestAnswerRepository::class), - m::mock(SettingsRepositoryInterface::class), ])->shouldAllowMockingProtectedMethods(); $this->sut->shouldReceive('setBestAnswer')->once();