From d5fd7da70712f9f71cd75589ac0d1f532e024b24 Mon Sep 17 00:00:00 2001 From: Diogo Peralta Cordeiro Date: Mon, 7 Mar 2022 15:38:11 +0000 Subject: [PATCH] [TESTS] Fix Core/RouterTest --- tests/Core/RouterTest.php | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) 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', + ]), + ); } }