Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: correcoes tests automatizado documento restrito e cancelado #773

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,9 @@ public function test_tramitar_processo_com_documento_restrito_hipotese_nao_mapea

$this->realizarTramiteExternoSemValidacaoNoRemetenteFixture(self::$processoTeste, self::$documentoTeste, self::$remetente, self::$destinatario);
self::$protocoloTeste = self::$processoTeste["PROTOCOLO"];

// A partir da versão SEI 5.0 ao criar um documento restrito o processo torna-se restrito também
self::$processoTeste["RESTRICAO"] = \ProtocoloRN::$NA_RESTRITO; // Configuração de documento restrito
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ public function test_tramitar_processo_com_documento_restrito()
self::$remetente['SENHA']
);


self::$protocoloTeste = $this->cadastrarProcessoFixture(self::$processoTeste); // Cadastrar novo processo de teste
self::$documentoTeste["RESTRICAO"] = \ProtocoloRN::$NA_RESTRITO; // Configuração de documento restrito
self::$documentoTeste["HIPOTESE_LEGAL"] = self::$remetente["HIPOTESE_RESTRICAO"]; // Configurar Hipotese legal
Expand All @@ -60,6 +61,10 @@ public function test_tramitar_processo_com_documento_restrito()
self::$destinatario['SIGLA_UNIDADE_HIERARQUIA'],
false
);

// A partir da versão SEI 5.0 ao criar um documento restrito o processo torna-se restrito também
self::$processoTeste["RESTRICAO"] = \ProtocoloRN::$NA_RESTRITO; // Configuração de documento restrito

}

/**
Expand Down Expand Up @@ -110,6 +115,8 @@ public function test_verificar_origem_processo_com_documento_restrito()

/**
* Teste de verificação do correto recebimento do processo contendo apenas um documento interno (gerado)
*
* A partir da versão SEI 5.0 ao criar um documento restrito o processo torna-se restrito também
*
* @group verificacao_recebimento
* @large
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,21 +54,6 @@ public function test_tramitar_processo_contendo_documento_cancelado()

$processo=self::$processoTeste;

$bancoOrgaoA = new DatabaseUtils(CONTEXTO_ORGAO_A);

$idAnexo = $bancoOrgaoA->query("SELECT an.id_anexo FROM rel_protocolo_protocolo pp
inner join protocolo p on pp.id_protocolo_1=p.id_protocolo
inner join anexo an on an.id_protocolo=pp.id_protocolo_2
where p.descricao=?",array($processo['DESCRICAO']));

if (array_key_exists("id_anexo", $idAnexo[0])) {
$id_Anexo=$idAnexo[0]["id_anexo"];
}else{
$id_Anexo=$idAnexo[0]["ID_ANEXO"];
}

$bancoOrgaoA->execute("delete from anexo where id_anexo=?",array($id_Anexo));

// Trâmitar Externamento processo para órgão/unidade destinatária
$this->tramitarProcessoExternamente(
self::$protocoloTeste,
Expand Down
Loading