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