X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/4e2fe6427ce03a0ed3c5fdfe384f7867ef52fcca..fa1c402b47bdd1f76b8528885c0e3a5e90731cdc:/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'