Skip to content

Commit

Permalink
fix unit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Nov 11, 2024
1 parent 597bc4a commit 02a3f7c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions tests/unit/SaveBestAnswerToDatabaseTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ public function testHandle_IdIsZero_CallsRemoveBestAnswer()

$this->sut = m::mock(SaveBestAnswerToDatabase::class.'[removeBestAnswer]', [
$notifications,
m::mock(Dispatcher::class),
m::mock(BestAnswerRepository::class),
])->shouldAllowMockingProtectedMethods();

Expand All @@ -113,7 +112,6 @@ public function testHandle_IdIsNotZero_CallsSetBestAnswer()

$this->sut = m::mock(SaveBestAnswerToDatabase::class.'[setBestAnswer]', [
$notifications,
m::mock(Dispatcher::class),
m::mock(BestAnswerRepository::class),
])->shouldAllowMockingProtectedMethods();

Expand Down

0 comments on commit 02a3f7c

Please sign in to comment.