Skip to content

Commit 9949fcf

Browse files
committed
add test
1 parent 3268028 commit 9949fcf

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/Commands/BackupCommandTest.php

+10
Original file line numberDiff line numberDiff line change
@@ -504,3 +504,13 @@
504504
*/
505505
app()['db']->disconnect();
506506
});
507+
508+
it('can create a backup when no databases specified', function () {
509+
config()->set('backup.backup.source.databases', []);
510+
511+
$this
512+
->artisan('backup:run')
513+
->assertSuccessful();
514+
515+
Storage::disk('local')->assertExists($this->expectedZipPath);
516+
});

0 commit comments

Comments
 (0)