Bläddra i källkod

Fixed unit test fix to be more compliant

Hugo Briand 11 år sedan
förälder
incheckning
7f6267a8ef
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Tests/Controller/CRUDControllerTest.php

+ 1 - 1
Tests/Controller/CRUDControllerTest.php

@@ -2041,7 +2041,7 @@ class CRUDControllerTest extends \PHPUnit_Framework_TestCase
 
     public function testBatchActionWrongMethod()
     {
-        $this->setExpectedException('RuntimeException', 'invalid request type, POST expected');
+        $this->setExpectedException('Symfony\Component\HttpKernel\Exception\NotFoundHttpException', 'Invalid request type "GET", POST expected');
 
         $this->controller->batchAction();
     }