forked from GNUsocial/gnu-social
[TESTS] Fix Core/RouterTest
This commit is contained in:
parent
1bdeac7076
commit
d5fd7da707
@ -51,6 +51,13 @@ class RouterTest extends GNUsocialTestCase
|
|||||||
public function testURLGen()
|
public function testURLGen()
|
||||||
{
|
{
|
||||||
parent::bootKernel();
|
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',
|
||||||
|
]),
|
||||||
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user