summaryrefslogtreecommitdiffstats
path: root/tests/lib/Route/RouterTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/lib/Route/RouterTest.php')
-rw-r--r--tests/lib/Route/RouterTest.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/tests/lib/Route/RouterTest.php b/tests/lib/Route/RouterTest.php
index 9affa978bf0..e67c4518cb0 100644
--- a/tests/lib/Route/RouterTest.php
+++ b/tests/lib/Route/RouterTest.php
@@ -36,7 +36,12 @@ class RouterTest extends TestCase {
public function testGenerateConsecutively(): void {
/** @var LoggerInterface $logger */
$logger = $this->createMock(LoggerInterface::class);
- $logger->expects($this->never())->method('info');
+ $logger->method('info')
+ ->willReturnCallback(
+ function (string $message, array $data) {
+ $this->fail('Unexpected info log: '.(string)($data['exception'] ?? $message));
+ }
+ );
$router = new Router($logger);
$this->assertEquals('/index.php/apps/files/', $router->generate('files.view.index'));