diff --git a/tests/system/Database/Migrations/MigrationRunnerTest.php b/tests/system/Database/Migrations/MigrationRunnerTest.php index 5f4a65212de0..95dd5fc34c27 100644 --- a/tests/system/Database/Migrations/MigrationRunnerTest.php +++ b/tests/system/Database/Migrations/MigrationRunnerTest.php @@ -37,7 +37,10 @@ public function testLoadsDefaultDatabaseWhenNoneSpecified() $db = $this->getPrivateProperty($runner, 'db'); $this->assertInstanceOf(BaseConnection::class, $db); - $this->assertEquals($dbConfig->tests['database'], $this->getPrivateProperty($db, 'database')); + $this->assertEquals( + ($dbConfig->tests['DBDriver'] === 'SQLite3' ? WRITEPATH : '' ) . $dbConfig->tests['database'], + $this->getPrivateProperty($db, 'database') + ); $this->assertEquals($dbConfig->tests['DBDriver'], $this->getPrivateProperty($db, 'DBDriver')); }