Skip to content

Commit

Permalink
test: Make sure a backend exists
Browse files Browse the repository at this point in the history
  • Loading branch information
nilmerg committed Dec 17, 2024
1 parent 1a23a6b commit c57298e
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -101,6 +102,7 @@ class FlattenedObjectVarsTest extends TestCase
public function setUp(): void
{
$this->connection = new TestConnection();
Backend::setDb($this->connection);
$this->setUpSqlAssertions();
}

Expand Down

0 comments on commit c57298e

Please sign in to comment.