|
@@ -47,7 +47,7 @@ class ClientRESTControllerTest extends WebTestCaseBase
|
|
$datos['ponSerialNumber'] = 'pon';
|
|
$datos['ponSerialNumber'] = 'pon';
|
|
$datos['clientId'] = '1';
|
|
$datos['clientId'] = '1';
|
|
$datos['transitionState'] = 'ts';
|
|
$datos['transitionState'] = 'ts';
|
|
- $datos['tenancy'] = 1;
|
|
|
|
|
|
+ $datos['tenancyId'] = 1;
|
|
|
|
|
|
if ($key == null) {
|
|
if ($key == null) {
|
|
return $datos;
|
|
return $datos;
|
|
@@ -55,7 +55,7 @@ class ClientRESTControllerTest extends WebTestCaseBase
|
|
if (isset($datos[$key])) {
|
|
if (isset($datos[$key])) {
|
|
return $datos[$key];
|
|
return $datos[$key];
|
|
} else {
|
|
} else {
|
|
- throw new \Exception("No se seteo la key del dato a obtener.");
|
|
|
|
|
|
+ throw new \Exception("No se seteo la key del dato a obtener. key=" . $key);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -77,7 +77,7 @@ class ClientRESTControllerTest extends WebTestCaseBase
|
|
}
|
|
}
|
|
// realizo la consulta
|
|
// realizo la consulta
|
|
if ($data == null) {
|
|
if ($data == null) {
|
|
- $data = array('mac' => $this->obtainData('mac'), 'tenancyId' => $this->obtainData('tenancy'));
|
|
|
|
|
|
+ $data = array('mac' => $this->obtainData('mac'), 'tenancyId' => $this->obtainData('tenancyId'));
|
|
}
|
|
}
|
|
$this->getClient()->request('GET', $uri . $this->generateFilters($data));
|
|
$this->getClient()->request('GET', $uri . $this->generateFilters($data));
|
|
// obtengo la respuesta
|
|
// obtengo la respuesta
|