diff --git a/tests/Core/RouterTest.php b/tests/Core/RouterTest.php index 89cc4f93b7..56c29cada2 100644 --- a/tests/Core/RouterTest.php +++ b/tests/Core/RouterTest.php @@ -51,6 +51,13 @@ class RouterTest extends GNUsocialTestCase public function testURLGen() { parent::bootKernel(); - static::assertSame('/attachment/1/thumbnail/big', Router::url('attachment_thumbnail', ['id' => 1, 'size' => 'big'])); + static::assertSame( + expected: '/object/note/1337/attachment/42/thumbnail/big', + actual: Router::url('note_attachment_thumbnail', [ + 'note_id' => 1337, + 'attachment_id' => 42, + 'size' => 'big', + ]), + ); } }