From 286aa05073155a9e511627a974292ad987f6c4dd Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Wed, 1 Nov 2023 21:15:42 +0100 Subject: [PATCH] [TASK] Use more stubs in the unit tests (#962) This way, the purpose of the stub/mock is more explicit. Fixes #870 --- Tests/Unit/Controller/TeaControllerTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tests/Unit/Controller/TeaControllerTest.php b/Tests/Unit/Controller/TeaControllerTest.php index 0ee8c9b..0cc2f47 100644 --- a/Tests/Unit/Controller/TeaControllerTest.php +++ b/Tests/Unit/Controller/TeaControllerTest.php @@ -51,8 +51,8 @@ final class TeaControllerTest extends UnitTestCase $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); } /**