use(WithFaker::class); test('database dump output', function (): void { $local = Storage::fake('local'); $fs = Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); Date::setTestNow(fake()->iso8601()); $action = new DumpDocumentAction(); $result = $action->handle(); expect($result->getStatus())->toBe(ActionStatus::PASSED); expect($local->allFiles())->toBeEmpty(); expect($fs->allFiles())->toHaveCount(1); $this->assertDatabaseCount(Dump::class, 1); });