diff --git a/src/Provider/Pelias/Tests/AdminLevelTest.php b/src/Provider/Pelias/Tests/AdminLevelTest.php index 4a0ab42db..80aa62b1c 100644 --- a/src/Provider/Pelias/Tests/AdminLevelTest.php +++ b/src/Provider/Pelias/Tests/AdminLevelTest.php @@ -55,10 +55,10 @@ public function testAdminLevelsOrder() $result = $provider->geocodeQuery(GeocodeQuery::create('foobar')); $this->assertInstanceOf(Collection::class, $result); - $this->assertEquals(1, $result->count()); + $this->assertSame(1, $result->count()); $address = $result->get(0); - $expectedOrder= [ + $expectedOrder = [ 'COUNTRY', 'MACROREGION', 'REGION', @@ -67,8 +67,8 @@ public function testAdminLevelsOrder() ]; foreach ($address->getAdminLevels()->all() as $key => $adminLevel) { - $this->assertEquals($expectedOrder[$key-1], $adminLevel->getName()); - $this->assertEquals($key, $adminLevel->getLevel(), 'Invalid admin level number for level '.$adminLevel->getName()); + $this->assertSame($expectedOrder[$key-1], $adminLevel->getName()); + $this->assertSame($key, $adminLevel->getLevel(), 'Invalid admin level number for level '.$adminLevel->getName()); } } } \ No newline at end of file