diff --git a/Tests/Unit/Controller/FrontEndEditorControllerTest.php b/Tests/Unit/Controller/FrontEndEditorControllerTest.php index f017d51..7871f56 100644 --- a/Tests/Unit/Controller/FrontEndEditorControllerTest.php +++ b/Tests/Unit/Controller/FrontEndEditorControllerTest.php @@ -114,7 +114,7 @@ final class FrontEndEditorControllerTest extends UnitTestCase $userUid = 5; $this->setUidOfLoggedInUser($userUid); - $teas = $this->createMock(QueryResultInterface::class); + $teas = $this->createStub(QueryResultInterface::class); $this->teaRepositoryMock->method('findByOwnerUid')->with($userUid)->willReturn($teas); $this->viewMock->expects(self::once())->method('assign')->with('teas', $teas); diff --git a/Tests/Unit/Controller/TeaControllerTest.php b/Tests/Unit/Controller/TeaControllerTest.php index 0cc2f47..a71c421 100644 --- a/Tests/Unit/Controller/TeaControllerTest.php +++ b/Tests/Unit/Controller/TeaControllerTest.php @@ -68,7 +68,7 @@ final class TeaControllerTest extends UnitTestCase */ public function indexActionAssignsAllTeaAsTeasToView(): void { - $teas = $this->createMock(QueryResultInterface::class); + $teas = $this->createStub(QueryResultInterface::class); $this->teaRepositoryMock->method('findAll')->willReturn($teas); $this->viewMock->expects(self::once())->method('assign')->with('teas', $teas);