Improvements
This commit is contained in:
@@ -6,11 +6,14 @@ namespace Pcm\GeocodeBundle\Tests;
|
||||
|
||||
use Pcm\GeocodeBundle\Entity\Interface\MappableInterface;
|
||||
use Pcm\GeocodeBundle\Entity\Trait\MappableTrait;
|
||||
use Pcm\GeocodeBundle\Model\LatLonModel;
|
||||
use Pcm\GeocodeBundle\Model\LatLongModel;
|
||||
use Pcm\GeocodeBundle\Service\Geocoder;
|
||||
use Pcm\GeocodeBundle\Tests\AppKernel;
|
||||
use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase;
|
||||
|
||||
/**
|
||||
* Note we sleep 1s after requests to prevent breaking the API T&Cs
|
||||
*/
|
||||
class GeocodeTest extends KernelTestCase
|
||||
{
|
||||
// Buckingham Palace
|
||||
@@ -41,7 +44,7 @@ class GeocodeTest extends KernelTestCase
|
||||
{
|
||||
sleep(1);
|
||||
$result = $this->geocoder->geocodePostcode(self::POSTCODE);
|
||||
$this->assertInstanceOf(LatLonModel::class, $result);
|
||||
$this->assertInstanceOf(LatLongModel::class, $result);
|
||||
}
|
||||
|
||||
private function getMappableEntity(): MappableInterface
|
||||
|
||||
Reference in New Issue
Block a user