diff --git a/Tests/Unit/Controller/TeaControllerTest.php b/Tests/Unit/Controller/TeaControllerTest.php index 0ee8c9bb..0cc2f472 100644 --- a/Tests/Unit/Controller/TeaControllerTest.php +++ b/Tests/Unit/Controller/TeaControllerTest.php @@ -51,8 +51,8 @@ protected function setUp(): void $this->viewMock = $this->createMock(TemplateView::class); $this->subject->_set('view', $this->viewMock); - $responseMock = $this->createMock(HtmlResponse::class); - $this->subject->method('htmlResponse')->willReturn($responseMock); + $responseStub = $this->createStub(HtmlResponse::class); + $this->subject->method('htmlResponse')->willReturn($responseStub); } /**