diff --git a/tests_sei41/funcional/tests/TramiteProcessoComDocumentoRestritoHipotesePadraoTest.php b/tests_sei41/funcional/tests/TramiteProcessoComDocumentoRestritoHipotesePadraoTest.php index 5690f39b..3c3bebe2 100755 --- a/tests_sei41/funcional/tests/TramiteProcessoComDocumentoRestritoHipotesePadraoTest.php +++ b/tests_sei41/funcional/tests/TramiteProcessoComDocumentoRestritoHipotesePadraoTest.php @@ -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 } diff --git a/tests_sei41/funcional/tests/TramiteProcessoComDocumentoRestritoTest.php b/tests_sei41/funcional/tests/TramiteProcessoComDocumentoRestritoTest.php index 02e72901..175e51ea 100755 --- a/tests_sei41/funcional/tests/TramiteProcessoComDocumentoRestritoTest.php +++ b/tests_sei41/funcional/tests/TramiteProcessoComDocumentoRestritoTest.php @@ -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 @@ -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 + } /** @@ -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 diff --git a/tests_sei41/funcional/tests/TramiteProcessoContendoDocumentoCanceladoSemTamanhoTest.php b/tests_sei41/funcional/tests/TramiteProcessoContendoDocumentoCanceladoSemTamanhoTest.php index 4954a0c3..7ffbc766 100755 --- a/tests_sei41/funcional/tests/TramiteProcessoContendoDocumentoCanceladoSemTamanhoTest.php +++ b/tests_sei41/funcional/tests/TramiteProcessoContendoDocumentoCanceladoSemTamanhoTest.php @@ -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,