faker->iso8601()); $this->artisan(DocumentDumpCommand::class) ->assertSuccessful() ->expectsOutputToContain('has been created'); } /** * The Database Dump Command shall produce a file in the /path/to/project/storage/db-dumps directory. * * @return void */ public function testDataBaseDumpFile(): void { $local = Storage::fake('local'); $fs = Storage::fake(Config::get(DumpConstants::DISK_QUALIFIED)); Date::setTestNow($this->faker->iso8601()); $this->artisan(DocumentDumpCommand::class)->run(); static::assertEmpty($local->allFiles()); static::assertCount(1, $fs->allFiles()); } }