We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 48d13b9 + cce2531 commit dcdaa43Copy full SHA for dcdaa43
tests/system/Database/Migrations/MigrationRunnerTest.php
@@ -79,8 +79,13 @@ public function testLoadsDefaultDatabaseWhenNoneSpecified()
79
$db = $this->getPrivateProperty($runner, 'db');
80
81
$this->assertInstanceOf(BaseConnection::class, $db);
82
+ $database = (
83
+ $dbConfig->tests['DBDriver'] === 'SQLite3'
84
+ && $dbConfig->tests['database'] !== ':memory:'
85
+ ? WRITEPATH : ''
86
+ ) . $dbConfig->tests['database'];
87
$this->assertSame(
- ($dbConfig->tests['DBDriver'] === 'SQLite3' ? WRITEPATH : '') . $dbConfig->tests['database'],
88
+ $database,
89
$this->getPrivateProperty($db, 'database')
90
);
91
$this->assertSame($dbConfig->tests['DBDriver'], $this->getPrivateProperty($db, 'DBDriver'));
0 commit comments