From e360b1ea5a324be9213d89969f039303c4a401c7 Mon Sep 17 00:00:00 2001 From: Oliver Klee Date: Tue, 6 Sep 2022 15:26:47 +0200 Subject: [PATCH] [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 --- Tests/Unit/Controller/TeaControllerTest.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Tests/Unit/Controller/TeaControllerTest.php b/Tests/Unit/Controller/TeaControllerTest.php index 2aea443..4f4a497 100644 --- a/Tests/Unit/Controller/TeaControllerTest.php +++ b/Tests/Unit/Controller/TeaControllerTest.php @@ -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();