X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/1f887a6ca0aba36261c443a9077eb28725838f7c..b63633857ed4c9af7af6f35054569dc79c6cc5a0:/test/php/Nominatim/AddressDetailsTest.php diff --git a/test/php/Nominatim/AddressDetailsTest.php b/test/php/Nominatim/AddressDetailsTest.php index 62faf1a4..2041dcb4 100644 --- a/test/php/Nominatim/AddressDetailsTest.php +++ b/test/php/Nominatim/AddressDetailsTest.php @@ -1,19 +1,23 @@ oDbStub = $this->getMockBuilder(\DB::class) @@ -74,7 +78,7 @@ class AddressDetailsTest extends \PHPUnit\Framework\TestCase { $oAD = new AddressDetails($this->oDbStub, 194663412, 10, 'en'); $expected = array( - 'attraction' => '10 Downing Street', + 'tourism' => '10 Downing Street', 'house_number' => '10', 'road' => 'Downing Street', 'neighbourhood' => 'St. James\'s', @@ -82,6 +86,8 @@ class AddressDetailsTest extends \PHPUnit\Framework\TestCase 'city' => 'London', 'state_district' => 'Greater London', 'state' => 'England', + 'ISO3166-2-lvl4' => 'GB-ENG', + 'ISO3166-2-lvl6' => 'GB-LND', 'postcode' => 'SW1A 2AA', 'country' => 'United Kingdom', 'country_code' => 'gb'