Skip to content

Commit 6d89d5b

Browse files
committed
Fix tests
1 parent 12ef93e commit 6d89d5b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/Geocoder/Geocoder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __construct(ProviderInterface $provider = null, ResultFactoryInt
6060
$this->provider = $provider;
6161

6262
$this->setResultFactory($resultFactory);
63-
$this->setMaxResults($maxResults);
63+
$this->limit($maxResults);
6464
}
6565

6666
/**

tests/Geocoder/Tests/GeocoderTest.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ public function testSetAndUseCustomMultipleResultFactory()
202202

203203
public function testSetMaxResults()
204204
{
205-
$this->geocoder->setMaxResults(3);
205+
$this->geocoder->limit(3);
206206
$this->assertSame(3, $this->geocoder->getMaxResults());
207207
}
208208

0 commit comments

Comments
 (0)