Skip to content

Commit c57298e

Browse files
committed
test: Make sure a backend exists
1 parent 1a23a6b commit c57298e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

test/php/library/Icingadb/Model/Behavior/FlattenedObjectVarsTest.php

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
namespace Tests\Icinga\Modules\Icingadb\Model\Behavior;
66

7+
use Icinga\Module\Icingadb\Common\Backend;
78
use Icinga\Module\Icingadb\Model\Host;
89
use ipl\Sql\Connection;
910
use ipl\Sql\Test\SqlAssertions;
@@ -101,6 +102,7 @@ class FlattenedObjectVarsTest extends TestCase
101102
public function setUp(): void
102103
{
103104
$this->connection = new TestConnection();
105+
Backend::setDb($this->connection);
104106
$this->setUpSqlAssertions();
105107
}
106108

0 commit comments

Comments
 (0)