mirror of
https://github.com/FriendsOfTYPO3/tea.git
synced 2024-12-22 18:06:10 +01:00
[TASK] Also mock redirectToUri
in the controller unit test (#554)
Now all methods that conceptually should not be part of a controller (and that hence must never be executed in a unit test) are mocked for consistency. Also sort the method names. Fixes #446
This commit is contained in:
parent
e8612cfa59
commit
e360b1ea5a
1 changed files with 1 additions and 1 deletions
|
@ -41,7 +41,7 @@ class TeaControllerTest extends UnitTestCase
|
|||
parent::setUp();
|
||||
|
||||
// We need to create an accessible mock in order to be able to set the protected `view`.
|
||||
$this->subject = $this->getAccessibleMock(TeaController::class, ['redirect', 'forward']);
|
||||
$this->subject = $this->getAccessibleMock(TeaController::class, ['forward', 'redirect', 'redirectToUri']);
|
||||
|
||||
$this->viewProphecy = $this->prophesize(TemplateView::class);
|
||||
$view = $this->viewProphecy->reveal();
|
||||
|
|
Loading…
Reference in a new issue