diff --git a/tests/test_app/TestApp/Controller/PostsController.php b/tests/test_app/TestApp/Controller/PostsController.php index bff8c71c6e0..3bd1ea9a3f2 100644 --- a/tests/test_app/TestApp/Controller/PostsController.php +++ b/tests/test_app/TestApp/Controller/PostsController.php @@ -70,6 +70,7 @@ public function index($layout = 'default') public function flashNoRender() { $this->Flash->error('An error message'); + return $this->redirect(['action' => 'index']); }