artisan(DumpPruneCommand::class, ['--hours' => 0]) ->assertFailed() ->expectsOutput('No prunings were attempted.'); }); test('deleted', function () { Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); $prunedCount = fake()->randomDigitNotNull(); Collection::times($prunedCount, function () { Date::setTestNow(fake()->iso8601()); $action = new DumpWikiAction(); $action->handle(); }); Date::setTestNow(); $this->artisan(DumpPruneCommand::class, ['--hours' => -1]) ->assertSuccessful() ->expectsOutputToContain('Pruned'); });