X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/fc19ebb2188a6e73faad07286518d83c041c9207..76c146f3269ff07fdad66cb1d2d74c2acbc2af91:/test/php/Nominatim/AddressDetailsTest.php diff --git a/test/php/Nominatim/AddressDetailsTest.php b/test/php/Nominatim/AddressDetailsTest.php index e7b3a3f8..4cf36344 100644 --- a/test/php/Nominatim/AddressDetailsTest.php +++ b/test/php/Nominatim/AddressDetailsTest.php @@ -1,9 +1,17 @@ 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,7 @@ class AddressDetailsTest extends \PHPUnit\Framework\TestCase 'city' => 'London', 'state_district' => 'Greater London', 'state' => 'England', + 'state_code' => 'ENG', 'postcode' => 'SW1A 2AA', 'country' => 'United Kingdom', 'country_code' => 'gb'