Skip to content

Commit

Permalink
GNRE
Browse files Browse the repository at this point in the history
  • Loading branch information
luizkim committed Nov 21, 2023
1 parent 07e034b commit 84d446b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions lib/Sped/Gnre/Sefaz/Lote.php
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,8 @@ public function setEstadoFactory(EstadoFactory $estadoFactory)
public function getHeaderSoap()
{
$action = $this->ambienteDeTeste ?
'http://www.testegnre.pe.gov.br/webservice/GnreRecepcaoLote' :
'http://www.gnre.pe.gov.br/webservice/GnreRecepcaoLote';
'http://www.testegnre.pe.gov.br/webservice/GnreLoteRecepcao' :
'http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao';

return array(
'Content-Type: application/soap+xml;charset=utf-8;action="' . $action . '"',
Expand Down
4 changes: 2 additions & 2 deletions testes/Sefaz/LoteTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function testDeveRetornarOsCabecalhosParaArequisicaoSoap()
$lote = new Lote();
$headersArray = $lote->getHeaderSoap();

$header = 'Content-Type: application/soap+xml;charset=utf-8;action="http://www.gnre.pe.gov.br/webservice/GnreRecepcaoLote"';
$header = 'Content-Type: application/soap+xml;charset=utf-8;action="http://www.gnre.pe.gov.br/webservice/GnreLoteRecepcao"';
$this->assertEquals($header, $headersArray[0]);
$this->assertEquals('SOAPAction: processar', $headersArray[1]);
}
Expand Down Expand Up @@ -323,7 +323,7 @@ public function testDeveRetornarOsCabecalhosParaArequisicaoSoapAoWebServiceDetes

$headersArray = $lote->getHeaderSoap();

$header = 'Content-Type: application/soap+xml;charset=utf-8;action="http://www.testegnre.pe.gov.br/webservice/GnreRecepcaoLote"';
$header = 'Content-Type: application/soap+xml;charset=utf-8;action="http://www.testegnre.pe.gov.br/webservice/GnreLoteRecepcao"';
$this->assertEquals($header, $headersArray[0]);
$this->assertEquals('SOAPAction: processar', $headersArray[1]);
}
Expand Down

0 comments on commit 84d446b

Please sign in to comment.