mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-12-25 20:26:11 +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:
parent
350fe8abb2
commit
286aa05073
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in a new issue