mirror of
https://github.com/archtechx/tenancy.git
synced 2026-02-05 22:44:05 +00:00
random dir name
This commit is contained in:
parent
9ea05394e2
commit
5c312e04ba
1 changed files with 1 additions and 2 deletions
|
|
@ -230,7 +230,7 @@ test('path used by sqlite manager can be customized', function () {
|
||||||
})->toListener());
|
})->toListener());
|
||||||
|
|
||||||
// Set custom path for SQLite file
|
// Set custom path for SQLite file
|
||||||
SQLiteDatabaseManager::$path = $customPath = database_path('custom');
|
SQLiteDatabaseManager::$path = $customPath = database_path(Str::random(8));
|
||||||
|
|
||||||
if (! is_dir($customPath)) {
|
if (! is_dir($customPath)) {
|
||||||
// Create custom directory
|
// Create custom directory
|
||||||
|
|
@ -244,7 +244,6 @@ test('path used by sqlite manager can be customized', function () {
|
||||||
]);
|
]);
|
||||||
|
|
||||||
expect(file_exists( $customPath . '/' . $name))->toBeTrue();
|
expect(file_exists( $customPath . '/' . $name))->toBeTrue();
|
||||||
unlink($customPath . '/' . $name); // clean up
|
|
||||||
});
|
});
|
||||||
|
|
||||||
// Datasets
|
// Datasets
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue