mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2025-07-30 01:04:12 +02:00
IcingaHostTest: skip db-related test with no db
This commit is contained in:
parent
fdfedbae04
commit
8cb84c7735
@ -182,9 +182,13 @@ class IcingaHostTest extends BaseTestCase
|
|||||||
*/
|
*/
|
||||||
public function testFailsToStoreWithInvalidUnresolvedDependencies()
|
public function testFailsToStoreWithInvalidUnresolvedDependencies()
|
||||||
{
|
{
|
||||||
$newHost = $this->host();
|
if ($this->skipForMissingDb()) {
|
||||||
$newHost->zone = 'invalid';
|
return;
|
||||||
$newHost->store($this->getDb());
|
}
|
||||||
|
|
||||||
|
$host = $this->host();
|
||||||
|
$host->zone = 'invalid';
|
||||||
|
$host->store($this->getDb());
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function host()
|
protected function host()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user