IcingaHostTest: skip db-related test with no db

This commit is contained in:
Thomas Gelf 2016-03-08 09:25:43 +01:00
parent fdfedbae04
commit 8cb84c7735
1 changed files with 7 additions and 3 deletions

View File

@ -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()