diff --git a/test/php/library/Icingadb/Model/Behavior/FlattenedObjectVarsTest.php b/test/php/library/Icingadb/Model/Behavior/FlattenedObjectVarsTest.php index 7cfd97ab8..e5709ef76 100644 --- a/test/php/library/Icingadb/Model/Behavior/FlattenedObjectVarsTest.php +++ b/test/php/library/Icingadb/Model/Behavior/FlattenedObjectVarsTest.php @@ -4,6 +4,7 @@ namespace Tests\Icinga\Modules\Icingadb\Model\Behavior; +use Icinga\Module\Icingadb\Common\Backend; use Icinga\Module\Icingadb\Model\Host; use ipl\Sql\Connection; use ipl\Sql\Test\SqlAssertions; @@ -101,6 +102,7 @@ class FlattenedObjectVarsTest extends TestCase public function setUp(): void { $this->connection = new TestConnection(); + Backend::setDb($this->connection); $this->setUpSqlAssertions(); }