[TESTS] Fix Core/RouterTest
This commit is contained in:
		@@ -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',
 | 
				
			||||||
 | 
					            ]),
 | 
				
			||||||
 | 
					        );
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user