/**
  * @test delete
  */
 public function testDeleteSysAreaAtuacao()
 {
     $sysAreaAtuacao = $this->makeSysAreaAtuacao();
     $resp = $this->sysAreaAtuacaoRepo->delete($sysAreaAtuacao->id);
     $this->assertTrue($resp);
     $this->assertNull(SysAreaAtuacao::find($sysAreaAtuacao->id), 'SysAreaAtuacao should not exist in DB');
 }
 /**
  * @param int $id
  * @return Response
  *
  * @SWG\Delete(
  *      path="/sysAreaAtuacaos/{id}",
  *      summary="Remove the specified SysAreaAtuacao from storage",
  *      tags={"SysAreaAtuacao"},
  *      description="Delete SysAreaAtuacao",
  *      produces={"application/json"},
  *      @SWG\Parameter(
  *          name="id",
  *          description="id of SysAreaAtuacao",
  *          type="integer",
  *          required=true,
  *          in="path"
  *      ),
  *      @SWG\Response(
  *          response=200,
  *          description="successful operation",
  *          @SWG\Schema(
  *              type="object",
  *              @SWG\Property(
  *                  property="success",
  *                  type="boolean"
  *              ),
  *              @SWG\Property(
  *                  property="data",
  *                  type="string"
  *              ),
  *              @SWG\Property(
  *                  property="message",
  *                  type="string"
  *              )
  *          )
  *      )
  * )
  */
 public function destroy($id)
 {
     /** @var SysAreaAtuacao $sysAreaAtuacao */
     $sysAreaAtuacao = $this->sysAreaAtuacaoRepository->find($id);
     if (empty($sysAreaAtuacao)) {
         return Response::json(ResponseUtil::makeError('SysAreaAtuacao not found'), 404);
     }
     $sysAreaAtuacao->delete();
     return $this->sendResponse($id, 'SysAreaAtuacao deleted successfully');
 }