From 2ea8c8c2bff100b432278ea2d1967d22662ea15d Mon Sep 17 00:00:00 2001
From: mattab <matthieu.aubry@gmail.com>
Date: Wed, 20 Nov 2013 22:58:48 +1300
Subject: [PATCH] throw exception requires format=original or XML error msg is
 returned...

---
 tests/PHPUnit/Integration/AnnotationsTest.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/tests/PHPUnit/Integration/AnnotationsTest.php b/tests/PHPUnit/Integration/AnnotationsTest.php
index 478fca6504..d6b569dce3 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);
+
         }
     }
 }
-- 
GitLab