Przeglądaj źródła

Se actualizaron los test

Guillermo Espinoza 7 lat temu
rodzic
commit
d6186e850d
1 zmienionych plików z 10 dodań i 14 usunięć
  1. 10 14
      src/CablemodemBundle/tests/CMTSRESTControllerTest.php

+ 10 - 14
src/CablemodemBundle/tests/CMTSRESTControllerTest.php

@@ -140,20 +140,16 @@ class CMTSRESTControllerTest extends WebTestCaseBase
      */
     public function testPOST()
     {
-        try {
-            // inicializo con los datos del webservicemock
-            $this->initDefault($this->obtainDataWebService());
-            // seteo los datos del listener
-            $this->setListener();
-            // hago la inserccion llamando al servicio por post
-            $this->getClient()->request('POST', $this->getPOSTUri(), $this->obtainData());
-            // obtengo la respuesta
-            $response = $this->getClient()->getResponse();
-
-            $this->assertEquals(201, $response->getStatusCode(), "Error en la respuesta http.");
-        } catch (\Exception $ex) {
-            var_dump($ex->getTraceAsString());
-        }
+        // inicializo con los datos del webservicemock
+        $this->initDefault($this->obtainDataWebService());
+        // seteo los datos del listener
+        $this->setListener();
+        // hago la inserccion llamando al servicio por post
+        $this->getClient()->request('POST', $this->getPOSTUri(), $this->obtainData());
+        // obtengo la respuesta
+        $response = $this->getClient()->getResponse();
+
+        $this->assertEquals(201, $response->getStatusCode(), "Error en la respuesta http.");
     }
 
     /**