Skip to content

Commit

Permalink
Fix Test
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanzweifel committed Oct 20, 2024
1 parent 260ada5 commit 2e50f4b
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions tests/Actions/DecompressBackupActionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,7 @@
});

it('decompresses zip backup file without password if local root differs from default', function () {
config([
'filesystems.disks.local' => [
'driver' => 'local',
'root' => storage_path('app/private'),
],
]);
config(['filesystems.disks.local.root' => storage_path('app/private')]);

$pendingRestore = PendingRestore::make(
disk: 'remote',
Expand All @@ -46,7 +41,7 @@

Storage::assertMissing($pendingRestore->getPathToLocalDecompressedBackup());
app(DecompressBackupAction::class)->execute($pendingRestore);
Storage::assertExists($pendingRestore->getPathToLocalDecompressedBackup());
Storage::assertExists('private'.DIRECTORY_SEPARATOR. $pendingRestore->getPathToLocalDecompressedBackup());
});

it('decompresses zip backup file that needs password do decrypt', function () {
Expand Down

0 comments on commit 2e50f4b

Please sign in to comment.