diff --git a/tests_super/funcional/tests/TramiteProcessoComDevolucaoAnexadoOutroTest.php b/tests_super/funcional/tests/TramiteProcessoComDevolucaoAnexadoOutroTest.php index 81082f33f..8271e00ce 100755 --- a/tests_super/funcional/tests/TramiteProcessoComDevolucaoAnexadoOutroTest.php +++ b/tests_super/funcional/tests/TramiteProcessoComDevolucaoAnexadoOutroTest.php @@ -93,11 +93,7 @@ public function test_devolucao_processo_anexado_em_outro_para_origem() self::$documentoTeste3 = $this->gerarDadosDocumentoExternoTeste(self::$remetente); // Busca ID que Protocolo principal recebeu no org2 - $parametros = [ - 'ProtocoloFormatado' => self::$protocoloTesteAnexado, - ]; - $objProtocoloFixture = new ProtocoloFixture(); - $objProtocoloAnexadoDTO = $objProtocoloFixture->buscar($parametros)[0]; + $objProtocoloAnexadoDTO = $this->consultarProcessoFixture(self::$protocoloTesteAnexado, \ProtocoloRN::$TP_PROCEDIMENTO); $this->cadastrarDocumentoExternoFixture(self::$documentoTeste3, $objProtocoloAnexadoDTO->getDblIdProtocolo()); // Gerar dados de testes para representar o processo principal diff --git a/tests_super/funcional/tests/TramiteProcessoComDevolucaoContendoOutroAnexadoTest.php b/tests_super/funcional/tests/TramiteProcessoComDevolucaoContendoOutroAnexadoTest.php index a9de4d870..29f07840c 100755 --- a/tests_super/funcional/tests/TramiteProcessoComDevolucaoContendoOutroAnexadoTest.php +++ b/tests_super/funcional/tests/TramiteProcessoComDevolucaoContendoOutroAnexadoTest.php @@ -97,11 +97,7 @@ public function test_devolucao_processo_contendo_outro_anexado_para_origem() $this->cadastrarDocumentoExternoFixture(self::$documentoTeste5, $objProtocoloAnexadoDTO->getDblIdProtocolo()); // Incluir novos documentos relacionados no processo anexado - $parametros = [ - 'ProtocoloFormatado' => self::$protocoloTestePrincipal, - ]; - $objProtocoloFixture = new ProtocoloFixture(); - $objProtocoloPrincipalDTO = $objProtocoloFixture->buscar($parametros)[0]; + $objProtocoloPrincipalDTO = $this->consultarProcessoFixture(self::$protocoloTestePrincipal, \ProtocoloRN::$TP_PROCEDIMENTO); $this->anexarProcessoFixture($objProtocoloPrincipalDTO->getDblIdProtocolo(), $objProtocoloAnexadoDTO->getDblIdProtocolo()); diff --git a/tests_super/funcional/tests/TramiteRecebimentoDocumentoAvulsoTest.php b/tests_super/funcional/tests/TramiteRecebimentoDocumentoAvulsoTest.php index c59a0328a..c0b6132b2 100755 --- a/tests_super/funcional/tests/TramiteRecebimentoDocumentoAvulsoTest.php +++ b/tests_super/funcional/tests/TramiteRecebimentoDocumentoAvulsoTest.php @@ -39,6 +39,7 @@ public function setUp(): void // Carregar contexto de testes e dados sobre certificado digital self::$remetente = $this->definirContextoTeste(CONTEXTO_ORGAO_B); self::$destinatario = $this->definirContextoTeste(CONTEXTO_ORGAO_A); + putenv("DATABASE_HOST=org2-database"); // Instanciar objeto de teste utilizando o BeSimpleSoap $localCertificado = self::$remetente['LOCALIZACAO_CERTIFICADO_DIGITAL']; @@ -87,7 +88,7 @@ public function test_devolucao_processo_para_origem() self::$documentoTeste3 = $this->gerarDadosDocumentoExternoTeste(self::$remetente); $documentos = array(self::$documentoTeste2, self::$documentoTeste3); - putenv("DATABASE_HOST=org2-database"); + putenv("DATABASE_HOST=org1-database"); $this->realizarTramiteExternoComValidacaoNoRemetenteFixture(self::$processoTeste, $documentos, self::$remetente, self::$destinatario); }