use(WithFaker::class); test('database dump output', function (): void { Storage::fake('local'); Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); Date::setTestNow(fake()->iso8601()); $this->artisan(AuthDumpCommand::class) ->assertSuccessful() ->expectsOutputToContain('has been created'); }); test('database dump file', function (): void { $local = Storage::fake('local'); $fs = Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); Date::setTestNow(fake()->iso8601()); $this->artisan(AuthDumpCommand::class)->run(); expect($local->allFiles())->toBeEmpty(); expect($fs->allFiles())->toHaveCount(1); });