/** * Tests the update funtion in the SpecimenTypeController * @param int $testSpecimenTypeId SpecimenType ID from testStore() * @return void */ public function testDelete() { Input::replace($this->specimenData); $specimenType = new SpecimenTypeController(); $specimenType->store(); $specimenTypestored = SpecimenType::orderBy('id', 'desc')->take(1)->get()->toArray(); $specimenType->delete($specimenTypestored[0]['id']); $specimenTypesDeleted = SpecimenType::withTrashed()->find($specimenTypestored[0]['id']); $this->assertNotNull($specimenTypesDeleted->deleted_at); }