aboutsummaryrefslogtreecommitdiffstats
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.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/lib/Route/RouterTest.php b/tests/lib/Route/RouterTest.php
index cc7eda199e2..44fef6f1d4f 100644
--- a/tests/lib/Route/RouterTest.php
+++ b/tests/lib/Route/RouterTest.php
@@ -30,12 +30,20 @@ use Test\TestCase;
/**
* Class RouterTest
*
+ * @group RoutingWeirdness
+ *
* @package Test\Route
*/
class RouterTest extends TestCase {
public function testGenerateConsecutively(): void {
/** @var LoggerInterface $logger */
$logger = $this->createMock(LoggerInterface::class);
+ $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'));