Explorar o código

Fixed unit test fix to be more compliant

Hugo Briand %!s(int64=11) %!d(string=hai) anos
pai
achega
7f6267a8ef
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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();
     }