From c57298e7769af7243839d127859aee83ac5a751a Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Tue, 17 Dec 2024 15:28:54 +0100 Subject: [PATCH] test: Make sure a backend exists --- .../library/Icingadb/Model/Behavior/FlattenedObjectVarsTest.php | 2 ++ 1 file changed, 2 insertions(+) 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(); }