create(); $company->delete(); $this->assertSoftDeleted($company); $this->artisan('snipeit:purge', ['--force' => 'true']) ->assertExitCode(0); $this->assertDatabaseMissing('companies', ['id' => $company->id]); } public function test_live_company_is_untouched_by_purge() { $company = Company::factory()->create(); $this->artisan('snipeit:purge', ['--force' => 'true']) ->assertExitCode(0); $this->assertDatabaseHas('companies', ['id' => $company->id, 'deleted_at' => null]); } }