Skip to content

Commit 4274c84

Browse files
authored
Merge pull request #307 from norkunas/fix-orm-tests
Fix ORM tests
2 parents 3460bbf + f209f88 commit 4274c84

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

Tests/Doctrine/ORM/GeocoderListenerTest.php

+2-3
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
use Doctrine\ORM\EntityManager;
2121
use Doctrine\ORM\Events;
2222
use Doctrine\ORM\Tools\SchemaTool;
23-
use Doctrine\Tests\DoctrineTestCase;
2423
use Doctrine\Tests\OrmTestCase;
2524
use Geocoder\Provider\Nominatim\Nominatim;
2625
use Http\Client\Curl\Client;
@@ -47,7 +46,7 @@ class GeocoderListenerTest extends OrmTestCase
4746

4847
public static function doSetUpBeforeClass(): void
4948
{
50-
if (!class_exists(DoctrineTestCase::class)) {
49+
if (!class_exists(OrmTestCase::class)) {
5150
/*
5251
* We check for DoctrineTestCase because it is in the same package as OrmTestCase and we want to be able to
5352
* fake OrmTestCase
@@ -65,7 +64,7 @@ protected function doSetUp(): void
6564
'memory' => true,
6665
]);
6766

68-
$this->em = $this->_getTestEntityManager($conn);
67+
$this->em = $this->getTestEntityManager($conn);
6968

7069
$reader = new SimpleAnnotationReader();
7170
$reader->addNamespace('Bazinga\GeocoderBundle\Mapping\Annotations');

0 commit comments

Comments
 (0)