Ver código fonte

Cambio config_test.yml

gabriel 7 anos atrás
pai
commit
c80c82c855

+ 3 - 2
app/config/config_test.yml

@@ -21,7 +21,8 @@ swiftmailer:
 services:
     backtrace_formatter:
       class:  Monolog\Formatter\LineFormatter
-      methods: { includeStacktraces: [true] }
+      calls:
+        - [ includeStacktraces ]
 
 monolog:
     handlers:
@@ -35,4 +36,4 @@ monolog:
         console:
             type:   console
             channels: [!event, !doctrine]
- 
+

+ 14 - 16
src/FTTHBundle/tests/ONURESTControllerTest.php

@@ -105,7 +105,6 @@ class ONURESTControllerTest extends WebTestCaseBase
      */
     public function testPOST()
     {
-        echo "\n";
         $this->initDefault($this->obtainDataWebService());
         $this->getClient()->request('POST', $this->getUri(), $this->obtainData());
         // obtengo la respuesta
@@ -145,24 +144,23 @@ class ONURESTControllerTest extends WebTestCaseBase
         $this->getClient()->request('PUT', $this->getUriPutDelete() . $id, $data);
         // obtengo la respuesta
         $response = $this->getClient()->getResponse();
-        $this->assertEquals("", $response->getContent(), "Error en la respuesta http.");
         $this->assertEquals(200, $response->getStatusCode(), "Error en la respuesta http.");
     }
 
-    ///**
-    // * Realiza una busqueda.
-    // * get_onus -> /api/onus.{_format}
-    // * controller: ClientBundle:ClientREST:cget
-    // * Method: GET
-    // */
-    //public function testGET_PUT()
-    //{
-    //    $response = $this->generateGET();
-    //    // verifco el resultado
-    //    $this->assertEquals(200, $response->getStatusCode(), "Error en la respuesta http.");
-    //    $this->assertJson($response->getContent(), "No se obtuvo un objeto json.");
-    //    $this->assertContains('pon_modifi', strtolower($response->getContent()), "Error al buscar al onu modificado.");
-    //}
+    /**
+     * Realiza una busqueda.
+     * get_onus -> /api/onus.{_format}
+     * controller: ClientBundle:ClientREST:cget
+     * Method: GET
+     */
+    public function testGET_PUT()
+    {
+        $response = $this->generateGET();
+        // verifco el resultado
+        $this->assertEquals(200, $response->getStatusCode(), "Error en la respuesta http.");
+        $this->assertJson($response->getContent(), "No se obtuvo un objeto json.");
+        $this->assertContains('pon_modifi', strtolower($response->getContent()), "Error al buscar al onu modificado.");
+    }
 
 
     /**