mirror of
https://github.com/Icinga/icingaweb2-module-director.git
synced 2026-06-09 08:54:56 -04:00
IcingaHostTest: skip db-related test with no db
This commit is contained in:
parent
fdfedbae04
commit
8cb84c7735
1 changed files with 7 additions and 3 deletions
|
|
@ -182,9 +182,13 @@ class IcingaHostTest extends BaseTestCase
|
|||
*/
|
||||
public function testFailsToStoreWithInvalidUnresolvedDependencies()
|
||||
{
|
||||
$newHost = $this->host();
|
||||
$newHost->zone = 'invalid';
|
||||
$newHost->store($this->getDb());
|
||||
if ($this->skipForMissingDb()) {
|
||||
return;
|
||||
}
|
||||
|
||||
$host = $this->host();
|
||||
$host->zone = 'invalid';
|
||||
$host->store($this->getDb());
|
||||
}
|
||||
|
||||
protected function host()
|
||||
|
|
|
|||
Loading…
Reference in a new issue