Skip to content

Commit

Permalink
[ECVS-5] added test case: response country code empty, vat number emp…
Browse files Browse the repository at this point in the history
…ty, request date empty, is valid, name empty, address empty.
  • Loading branch information
arslanim committed Dec 28, 2023
1 parent f42b472 commit 7b6855e
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/unit/services/VatNumberValidationServiceTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,29 @@ public function getCheckVatProvidedData(): array
''
),
],
'response country code empty, vat number empty, request date empty, is valid, name empty, address empty' => [
'vatNumber' => new VatNumber(
'DE',
'12312312'
),
'checkVatCallArgs' => [
$this::EXPECTED_URL_SOURCE,
[
'json' => [
'countryCode' => 'DE',
'vatNumber' => '12312312',
],
]
],
'checkVatResponse' => '{"countryCode": "", "vatNumber": "", "requestDate": "", "valid": true, "name": "", "address": ""}',
'expectedVatNumberValidationResult' => new VatNumberValidationResult(
new VatNumber('', ''),
'',
true,
'',
''
),
],
];
}

Expand Down

0 comments on commit 7b6855e

Please sign in to comment.