mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-23 18:03:17 +00:00
Change to be able to return called API version
This commit is contained in:
@@ -23,7 +23,7 @@ class ApiExceptionHandlerSubscriberTest extends \PhraseanetTestCase
|
||||
public function testError($exception, $code)
|
||||
{
|
||||
$app = new Application(Application::ENV_TEST);
|
||||
$app['dispatcher']->addSubscriber(new ApiExceptionHandlerSubscriber($app));
|
||||
$app['dispatcher']->addSubscriber(new ApiExceptionHandlerSubscriber());
|
||||
$app->get('/', function () use ($exception) {
|
||||
throw $exception;
|
||||
});
|
||||
|
Reference in New Issue
Block a user