[TESTS] Fix Core/RouterTest

This commit is contained in:
Diogo Peralta Cordeiro 2022-03-07 15:38:11 +00:00
parent 1bdeac7076
commit d5fd7da707
Signed by: diogo
GPG Key ID: 18D2D35001FBFAB0
1 changed files with 8 additions and 1 deletions

View File

@ -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',
]),
);
}
}