diff --git a/tests/PHPUnit/Integration/AnnotationsTest.php b/tests/PHPUnit/Integration/AnnotationsTest.php index 478fca650481fba668714848e72db27bd1a6f09a..d6b569dce342e0fd4e25c7d8f0b5c5c325160e5e 100755 --- a/tests/PHPUnit/Integration/AnnotationsTest.php +++ b/tests/PHPUnit/Integration/AnnotationsTest.php @@ -298,6 +298,9 @@ class AnnotationsTest extends IntegrationTestCase FakeAccess::$idSitesView = $hasViewAccess ? array(self::$fixture->idSite1) : array(); Access::setSingletonInstance($access); + // to make sure exception are thrown + $request .= '&format=original'; + if ($checkException) { try { $request = new Request($request); @@ -309,7 +312,7 @@ class AnnotationsTest extends IntegrationTestCase } else { $request = new Request($request); $response = $request->process(); - $this->checkRequestResponse($response); + } } }