Bläddra i källkod

Arreglo del test

gabriel 7 år sedan
förälder
incheckning
a0e55d5727
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3 3
      src/FTTHBundle/tests/ONURESTControllerTest.php

+ 3 - 3
src/FTTHBundle/tests/ONURESTControllerTest.php

@@ -47,7 +47,7 @@ class ClientRESTControllerTest extends WebTestCaseBase
         $datos['ponSerialNumber'] = 'pon';
         $datos['clientId'] = '1';
         $datos['transitionState'] = 'ts';
-        $datos['tenancy'] = 1;
+        $datos['tenancyId'] = 1;
 
         if ($key == null) {
             return $datos;
@@ -55,7 +55,7 @@ class ClientRESTControllerTest extends WebTestCaseBase
             if (isset($datos[$key])) {
                 return $datos[$key];
             } 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
         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));
         // obtengo la respuesta