mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Change in ContentNegotiationSubscriber
This commit is contained in:
@@ -31,7 +31,7 @@ class ContentNegotiationSubscriberTest extends \PHPUnit_Framework_TestCase
|
||||
private function request($accept)
|
||||
{
|
||||
$app = new Application(Application::ENV_TEST);
|
||||
$app['dispatcher']->addSubscriber(new ContentNegotiationSubscriber($app));
|
||||
$app['dispatcher']->addSubscriber(new ContentNegotiationSubscriber($app['negotiator'], $app['phraseanet.content-negotiation.priorities']));
|
||||
$app->get('/content/negociation', function () {
|
||||
return '';
|
||||
});
|
||||
|
Reference in New Issue
Block a user