aboutsummaryrefslogtreecommitdiffhomepage
path: root/tests/front/controller/visitor/FrontControllerMockHelper.php
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2020-09-12 12:42:19 +0200
committerArthurHoaro <arthur@hoa.ro>2020-09-12 12:42:19 +0200
commitd52ab0b1e99aa0c494f389092dce1e926296032d (patch)
tree3a436eedf30cbb8f8b0943c5e5c3b88e49488b69 /tests/front/controller/visitor/FrontControllerMockHelper.php
parente2dff28b44fafcf11a1db7985c50cd40e6945821 (diff)
downloadShaarli-d52ab0b1e99aa0c494f389092dce1e926296032d.tar.gz
Shaarli-d52ab0b1e99aa0c494f389092dce1e926296032d.tar.zst
Shaarli-d52ab0b1e99aa0c494f389092dce1e926296032d.zip
Properly handle 404 errors
Use 404 template instead of default Slim error page if the route is not found. Fixes #827
Diffstat (limited to 'tests/front/controller/visitor/FrontControllerMockHelper.php')
-rw-r--r--tests/front/controller/visitor/FrontControllerMockHelper.php1
1 files changed, 0 insertions, 1 deletions
diff --git a/tests/front/controller/visitor/FrontControllerMockHelper.php b/tests/front/controller/visitor/FrontControllerMockHelper.php
index e0bd4ecf..927e7f0a 100644
--- a/tests/front/controller/visitor/FrontControllerMockHelper.php
+++ b/tests/front/controller/visitor/FrontControllerMockHelper.php
@@ -94,7 +94,6 @@ trait FrontControllerMockHelper
94 protected function assignTemplateVars(array &$variables): void 94 protected function assignTemplateVars(array &$variables): void
95 { 95 {
96 $this->container->pageBuilder 96 $this->container->pageBuilder
97 ->expects(static::atLeastOnce())
98 ->method('assign') 97 ->method('assign')
99 ->willReturnCallback(function ($key, $value) use (&$variables) { 98 ->willReturnCallback(function ($key, $value) use (&$variables) {
100 $variables[$key] = $value; 99 $variables[$key] = $value;