|
@@ -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.");
|
|
|
+ }
|
|
|
|
|
|
|
|
|
/**
|