diff options
author | ArthurHoaro <arthur@hoa.ro> | 2020-09-12 21:41:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-12 21:41:58 +0200 |
commit | 0d930454a2892715e691f9c7713e26a3bb4ee96c (patch) | |
tree | 770197f23a6ec512f54bd22578ec971f53408dc3 /tests/front/controller/visitor/FrontControllerMockHelper.php | |
parent | 4af591ff3c5db4dea5b6c437527f6f9b12917570 (diff) | |
parent | d52ab0b1e99aa0c494f389092dce1e926296032d (diff) | |
download | Shaarli-0d930454a2892715e691f9c7713e26a3bb4ee96c.tar.gz Shaarli-0d930454a2892715e691f9c7713e26a3bb4ee96c.tar.zst Shaarli-0d930454a2892715e691f9c7713e26a3bb4ee96c.zip |
Merge pull request #1553 from ArthurHoaro/fix/404-page
Properly handle 404 errors
Diffstat (limited to 'tests/front/controller/visitor/FrontControllerMockHelper.php')
-rw-r--r-- | tests/front/controller/visitor/FrontControllerMockHelper.php | 1 |
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; |