mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-09 23:56:14 +01:00

[TASK] Use more stubs in the unit tests (#962)

This way, the purpose of the stub/mock is more explicit.

Fixes #870
This commit is contained in:
Oliver Klee 2023-11-01 21:15:42 +01:00 committed by GitHub
parent 350fe8abb2
commit 286aa05073
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
}
/**