Skip to content

Commit

Permalink
GNRE
Browse files Browse the repository at this point in the history
  • Loading branch information
luizkim committed Nov 27, 2023
1 parent 52ce245 commit 41770ca
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 9 deletions.
2 changes: 1 addition & 1 deletion lib/Sped/Gnre/Sefaz/ConfigUf.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function soapAction()
{
return $this->ambienteDeTeste ?
'http://www.testegnre.pe.gov.br/gnreWS/services/GnreConfigUF' :
'https://www.gnre.pe.gov.br/gnreWS/services/GnreConfigUF';
'http://www.gnre.pe.gov.br/gnreWS/services/GnreConfigUF';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Sped/Gnre/Sefaz/Consulta.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ public function soapAction()
{
return $this->ambienteDeTeste ?
'http://www.testegnre.pe.gov.br/gnreWS/services/GnreResultadoLote' :
'https://www.gnre.pe.gov.br/gnreWS/services/GnreResultadoLote';
'http://www.gnre.pe.gov.br/gnreWS/services/GnreResultadoLote';
}

/**
Expand Down
2 changes: 1 addition & 1 deletion lib/Sped/Gnre/Sefaz/Lote.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ public function soapAction()
{
return $this->ambienteDeTeste ?
'http://www.testegnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao' :
'https://www.gnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao';
'http://www.gnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao';
}

/**
Expand Down
4 changes: 2 additions & 2 deletions testes/Sefaz/ConfigUfTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function testDeveRetornarAacaoAserExecutadaNoSoap()
{
$consulta = new \Sped\Gnre\Sefaz\ConfigUf();

$this->assertEquals('https://www.gnre.pe.gov.br/gnreWS/services/GnreConfigUF', $consulta->soapAction());
$this->assertEquals('http://www.gnre.pe.gov.br/gnreWS/services/GnreConfigUF', $consulta->soapAction());
}

public function testDeveRetornarXmlCompletoVazioParaRealizarAconsulta()
Expand All @@ -55,7 +55,7 @@ public function testDeveRetornarAactionAserExecutadaNoWebServiceDeProducao()
{
$consulta = new \Sped\Gnre\Sefaz\ConfigUf();

$this->assertEquals($consulta->soapAction(), 'https://www.gnre.pe.gov.br/gnreWS/services/GnreConfigUF');
$this->assertEquals($consulta->soapAction(), 'http://www.gnre.pe.gov.br/gnreWS/services/GnreConfigUF');
}

public function testDeveRetornarAactionAserExecutadaNoWebServiceDeTestes()
Expand Down
4 changes: 2 additions & 2 deletions testes/Sefaz/ConsultaTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public function testDeveRetornarAacaoAserExecutadaNoSoap()
{
$consulta = new \Sped\Gnre\Sefaz\Consulta();

$this->assertEquals('https://www.gnre.pe.gov.br/gnreWS/services/GnreResultadoLote', $consulta->soapAction());
$this->assertEquals('http://www.gnre.pe.gov.br/gnreWS/services/GnreResultadoLote', $consulta->soapAction());
}

public function testDeveRetornarXmlCompletoVazioParaRealizarAconsulta()
Expand All @@ -54,7 +54,7 @@ public function testDeveRetornarAactionAserExecutadaNoWebServiceDeProducao()
{
$consulta = new \Sped\Gnre\Sefaz\Consulta();

$this->assertEquals($consulta->soapAction(), 'https://www.gnre.pe.gov.br/gnreWS/services/GnreResultadoLote');
$this->assertEquals($consulta->soapAction(), 'http://www.gnre.pe.gov.br/gnreWS/services/GnreResultadoLote');
}

public function testDeveRetornarAactionAserExecutadaNoWebServiceDeTestes()
Expand Down
4 changes: 2 additions & 2 deletions testes/Sefaz/LoteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -26,14 +26,14 @@ public function testDeveUtilizarOAmbienteDeProducaoAoEnviarUmLoteParaOwebService
{
$lote = new Lote();

$this->assertEquals('https://www.gnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao', $lote->soapAction());
$this->assertEquals('http://www.gnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao', $lote->soapAction());
}

public function testDeveRetornarAacaoAserExecutadaNoSoap()
{
$lote = new Lote();

$this->assertEquals('https://www.gnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao', $lote->soapAction());
$this->assertEquals('http://www.gnre.pe.gov.br/gnreWS/services/GnreLoteRecepcao', $lote->soapAction());
}

public function testDeveRetornarOxmlDoLoteSemCamposExtrasEparaEmitenteEdestinatarioJuridicos()
Expand Down

0 comments on commit 41770ca

Please sign in to comment.