|
@@ -39,6 +39,8 @@ class ONURESTControllerTest extends WebTestCaseBase
|
|
|
$datos = array();
|
|
|
$datos['client'] =
|
|
|
json_encode(array(array("name" => "Stock", "id" => 1)));
|
|
|
+ $datos['device'] =
|
|
|
+ json_encode(array(array("name" => "Prueba", "id" => 1)));
|
|
|
return $datos;
|
|
|
}
|
|
|
|
|
@@ -61,6 +63,7 @@ class ONURESTControllerTest extends WebTestCaseBase
|
|
|
// $datos['clientId'] = '1';
|
|
|
$datos['transitionState'] = 'ts';
|
|
|
$datos['tenancyId'] = 1;
|
|
|
+ $datos['deviceId'] = 1;
|
|
|
|
|
|
if ($key == null) {
|
|
|
return $datos;
|
|
@@ -136,12 +139,11 @@ class ONURESTControllerTest extends WebTestCaseBase
|
|
|
*/
|
|
|
public function testPUT()
|
|
|
{
|
|
|
+ $this->initDefault($this->obtainDataWebService());
|
|
|
$response = $this->generateGET();
|
|
|
$id = $this->getProperty($response, 'id');
|
|
|
// realizo la consulta
|
|
|
$data = $this->obtainDataChange($this->obtainData(), array('ponSerialNumber' => 'pon_modifi', 'id' => $id));
|
|
|
- $this->initDefault();
|
|
|
-
|
|
|
$this->getClient()->request('PUT', $this->getUriPutDelete() . $id, $data);
|
|
|
// obtengo la respuesta
|
|
|
$response = $this->getClient()->getResponse();
|