Skip to content

Commit

Permalink
test fix for get "database" property prefixed with WRITEPATH for sqlite
Browse files Browse the repository at this point in the history
  • Loading branch information
samsonasik committed Jun 24, 2020
1 parent 13b0da0 commit bd61fe8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/system/Database/Migrations/MigrationRunnerTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

Expand Down

0 comments on commit bd61fe8

Please sign in to comment.