summaryrefslogtreecommitdiff
path: root/tests/Unit/Middleware/LegacyMiddlewareTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/Unit/Middleware/LegacyMiddlewareTest.php')
-rw-r--r--tests/Unit/Middleware/LegacyMiddlewareTest.php3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/Unit/Middleware/LegacyMiddlewareTest.php b/tests/Unit/Middleware/LegacyMiddlewareTest.php
index caea483d..8dd2f417 100644
--- a/tests/Unit/Middleware/LegacyMiddlewareTest.php
+++ b/tests/Unit/Middleware/LegacyMiddlewareTest.php
@@ -76,6 +76,9 @@ class LegacyMiddlewareTest extends TestCase
$auth->expects($this->atLeastOnce())
->method('user')
->willReturn(false);
+ $auth->expects($this->atLeastOnce())
+ ->method('can')
+ ->willReturn(false);
$translator->expects($this->exactly(2))
->method('translate')