X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/e4a51e460e0e7020fed0eeeb8b6cce7148e0bb58..3734f1d0b84c642ba89b5a4c39bac845f5627be7:/test/php/Nominatim/AddressDetailsTest.php?ds=sidebyside diff --git a/test/php/Nominatim/AddressDetailsTest.php b/test/php/Nominatim/AddressDetailsTest.php index b29d9088..2041dcb4 100644 --- a/test/php/Nominatim/AddressDetailsTest.php +++ b/test/php/Nominatim/AddressDetailsTest.php @@ -1,15 +1,23 @@ oDbStub = $this->getMockBuilder(\DB::class) @@ -70,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', @@ -78,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'