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

View File

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