Skip to content

Commit af66a48

Browse files
committed
wip
1 parent fa19a09 commit af66a48

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tests/Providers/nl_NL/PostcodeNLTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ public function test_it_can_get_the_default_config_values_for_this_provider()
3030

3131
public function test_it_can_get_the_correct_values_for_find_by_postcode_and_house_number_a_valid_postal_code()
3232
{
33-
Http::fake(['https://json.api-postcode.nl?postcode=1118CP&number=202' => Http::response('{"street":"Evert van de Beekstraat","houseNumber":202,"houseNumberAddition":"","postcode":"1118CP","city":"Schiphol","municipality":"Haarlemmermeer","province":"Noord-Holland","rdX":111396,"rdY":479739,"latitude":52.30389933,"longitude":4.74791023,"bagNumberDesignationId":"0394200001001951","bagAddressableObjectId":"0394010001001991","addressType":"building","purposes":["office"],"surfaceArea":16800,"houseNumberAdditions":[""]}')]);
33+
Http::fake(['https://api.postcode.nl/rest/addresses/1118CP/202' => Http::response('{"street":"Evert van de Beekstraat","houseNumber":202,"houseNumberAddition":"","postcode":"1118CP","city":"Schiphol","municipality":"Haarlemmermeer","province":"Noord-Holland","rdX":111396,"rdY":479739,"latitude":52.30389933,"longitude":4.74791023,"bagNumberDesignationId":"0394200001001951","bagAddressableObjectId":"0394010001001991","addressType":"building","purposes":["office"],"surfaceArea":16800,"houseNumberAdditions":[""]}')]);
3434

3535
$address = $this->postcodeNL->findByPostcodeAndHouseNumber('1118CP', '202');
3636

@@ -53,7 +53,7 @@ public function test_it_can_get_the_correct_values_for_find_by_postcode_and_hous
5353

5454
public function test_it_can_get_the_correct_values_for_find_by_postcode_and_house_number_an_invalid_postal_code()
5555
{
56-
Http::fake(['https://json.api-postcode.nl?postcode=1118CP&number=1' => fn () => throw new HttpClientException('{"exception":"Combination does not exist.","exceptionId":"PostcodeNl_Service_PostcodeAddress_AddressNotFoundException"}', 404)]);
56+
Http::fake(['https://api.postcode.nl/rest/addresses/1118CP/1' => fn () => throw new HttpClientException('{"exception":"Combination does not exist.","exceptionId":"PostcodeNl_Service_PostcodeAddress_AddressNotFoundException"}', 404)]);
5757

5858
// GuzzleHttp\Exception\ClientException: Client error: `GET https://json.api-postcode.nl?postcode=1118CP&number=1` resulted in a `404 Not Found` response:
5959
// {"error":"Cannot resolve address for postcode: 1118CP"}

0 commit comments

Comments
 (0)