/** * Tests the update function in the PatientController * @depends testStore * @param void * @return void */ public function testDelete() { $this->be(User::first()); $this->runStore($this->input); $patientSaved = Patient::orderBy('id', 'desc')->first(); $patient = new PatientController(); $patient->delete($patientSaved->id); $patientsDeleted = Patient::withTrashed()->find($patientSaved->id); $this->assertNotNull($patientsDeleted->deleted_at); }