|
@@ -401,8 +401,10 @@ class WebTestCaseBase extends WebTestCase
|
|
// creo el servicio de tenencias
|
|
// creo el servicio de tenencias
|
|
$this->fakeTenancyService();
|
|
$this->fakeTenancyService();
|
|
|
|
|
|
- static::$kernel->getContainer()->get('device.device_listener')->remoteCheck(false);
|
|
|
|
- static::$kernel->getContainer()->get('device.device_validator')->remoteCheck(false);
|
|
|
|
|
|
+ if static::$kernel->getContainer()->has('device.device_listener')
|
|
|
|
+ static::$kernel->getContainer()->get('device.device_listener')->remoteCheck(false);
|
|
|
|
+ if static::$kernel->getContainer()->has('device.device_validator')
|
|
|
|
+ static::$kernel->getContainer()->get('device.device_validator')->remoteCheck(false);
|
|
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|