Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 012cc59

Browse files
committed
Fix localhost default tests
1 parent 58e5def commit 012cc59

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

src/Geocoder/Provider/AbstractProvider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,6 @@ protected function getLocalhostDefaults()
8989
{
9090
return [
9191
'locality' => 'localhost',
92-
'county' => 'localhost',
93-
'region' => 'localhost',
9492
'country' => 'localhost',
9593
];
9694
}

tests/Geocoder/Tests/Provider/AbstractProviderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public function testGetLocalhostDefaults()
1919
$provider = new MockProvider($adapter);
2020
$result = $provider->getLocalhostDefaults();
2121

22-
$this->assertEquals(4, count($result));
22+
$this->assertEquals(2, count($result));
2323
$this->assertEquals('localhost', $result['locality']);
2424
$this->assertEquals('localhost', $result['country']);
2525
}

0 commit comments

Comments
 (0)