public function testDelete() { $idDelete = Trip::all()->last()['id']; $this->seeInDatabase('trips', ['id' => $idDelete]); $this->visit('/trip/destroy/' . $idDelete); $this->seeIsSoftDeletedInDatabase('trips', ['id' => $idDelete]); }
public function testDeleteExecutive() { $this->get('/trip/destroy/' . Trip::all()->last()['id'])->assertResponseStatus(302); }