mirror of https://github.com/FriendsOfTYPO3/tea.git synced 2024-11-22 18:56:14 +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:
Oliver Klee 2022-09-06 15:26:47 +02:00 committed by GitHub
parent e8612cfa59
commit e360b1ea5a
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -41,7 +41,7 @@ class TeaControllerTest extends UnitTestCase
parent::setUp(); parent::setUp();
// We need to create an accessible mock in order to be able to set the protected `view`. // 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); $this->viewProphecy = $this->prophesize(TemplateView::class);
$view = $this->viewProphecy->reveal(); $view = $this->viewProphecy->reveal();