Skip to content

Commit

Permalink
Merge pull request #4 from blacktrue/fix/code-request-5004
Browse files Browse the repository at this point in the history
Fix correct name and message for code request 5004
  • Loading branch information
eclipxe13 authored Aug 11, 2019
2 parents f4259f1 + 9a553d2 commit df04c51
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/Shared/CodeRequest.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
* @method bool isAccepted()
* @method bool isExhausted()
* @method bool isMaximumLimitReaded()
* @method bool isNotFound()
* @method bool isEmptyResult()
* @method bool isDuplicated()
*/
final class CodeRequest extends OpenEnum
Expand All @@ -27,8 +27,8 @@ final class CodeRequest extends OpenEnum
'message' => 'Tope máximo: Indica que se está superando el tope máximo de CFDI o Metadata',
],
5004 => [
'name' => 'NotFound',
'message' => 'No se encontró la solicitud',
'name' => 'EmptyResult',
'message' => 'No se encontró la información: Indica que no generó paquetes por falta de información.',
],
5005 => [
'name' => 'Duplicated',
Expand Down
2 changes: 1 addition & 1 deletion tests/Unit/Services/Verify/VerifyTranslatorTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public function testCreateVerifyResultFromSoapResponseWithZeroPackages(): void
$this->assertEquals($expectedStatusRequest, $statusRequest->getValue());
$this->assertTrue($statusRequest->isRejected());
$this->assertEquals($expectedCodeRequest, $codeRequest->getValue());
$this->assertTrue($codeRequest->isNotFound());
$this->assertTrue($codeRequest->isEmptyResult());
$this->assertEquals($expectedNumberCfdis, $result->getNumberCfdis());
$this->assertEquals($expectedPackagesIds, $result->getPackagesIds());
}
Expand Down

0 comments on commit df04c51

Please sign in to comment.