Skip to content

Commit 50389b1

Browse files
authored
Add a test for the empty DB list spatie#1877
1 parent 3072683 commit 50389b1

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

tests/Commands/BackupCommandTest.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,16 @@
188188
->assertExitCode(1);
189189
});
190190

191+
it('can backup when no databases specified', function () {
192+
config()->set('backup.backup.source.databases', []);
193+
194+
$this
195+
->artisan('backup:run')
196+
->assertSuccessful();
197+
198+
Storage::disk('local')->assertExists($this->expectedZipPath);
199+
});
200+
191201
it('can backup twice a day at same time in 12h clock', function () {
192202
// first backup
193203
$this->date = Carbon::create('2016', 1, 1, 9, 1, 1);

0 commit comments

Comments
 (0)