File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 11<?php
22
3+ use Illuminate \Support \Facades \Storage ;
34use Itiden \Backup \Contracts \Repositories \BackupRepository ;
45use Itiden \Backup \Facades \Backuper ;
56
3132 expect ($ responseJson ->status ())->toBe (403 );
3233});
3334
34- it ('can be downloaded by a user with download backups permission ' , function () {
35+ it ('can be downloaded by a user with download backups permission ' , function (string $ disk ) {
36+ Storage::fake ($ disk );
37+ config ()->set ('backup.destination.disk ' , $ disk );
38+
3539 $ backup = Backuper::backup ();
3640
3741 $ user = user ();
4347 $ response = get (cp_route ('api.itiden.backup.download ' , $ backup ->timestamp ));
4448
4549 expect ($ response )->assertDownload ();
46- });
50+ })-> with ([ ' s3 ' , ' local ' ]) ;
4751
4852it ('adds a download action to the metadata ' , function () {
4953 $ backup = Backuper::backup ();
You can’t perform that action at this time.
0 commit comments