diff --git a/tests/Functional/GeocoderListenerTest.php b/tests/Functional/GeocoderListenerTest.php index a910953..5f55046 100644 --- a/tests/Functional/GeocoderListenerTest.php +++ b/tests/Functional/GeocoderListenerTest.php @@ -109,7 +109,7 @@ public function testPersistForProperty(): void } $kernel->addTestConfig(__DIR__.'/config/listener.yml'); - $kernel->addTestConfig(__DIR__.'/config/listener_'.(PHP_VERSION_ID >= 80000 ? 'php8' : 'php7').'.yml'); + $kernel->addTestConfig(__DIR__.'/config/listener_php8.yml'); }]); $container = self::getContainer(); diff --git a/tests/Functional/config/listener_php7.yml b/tests/Functional/config/listener_php7.yml deleted file mode 100644 index d13fa8c..0000000 --- a/tests/Functional/config/listener_php7.yml +++ /dev/null @@ -1,33 +0,0 @@ -doctrine: - orm: - mappings: - App: - is_bundle: false - type: annotation - dir: '%kernel.project_dir%/tests/Functional/Fixtures/Entity' - prefix: 'Bazinga\GeocoderBundle\Tests\Functional\Fixtures\Entity' - alias: App - -bazinga_geocoder: - profiling: - enabled: false - providers: - acme: - factory: Bazinga\GeocoderBundle\ProviderFactory\NominatimFactory - options: - root_url: 'https://nominatim.openstreetmap.org' - user_agent: 'geocoder-php test_suite' - -services: - Bazinga\GeocoderBundle\Mapping\Driver\AnnotationDriver: - class: Bazinga\GeocoderBundle\Mapping\Driver\AnnotationDriver - arguments: - - '@annotations.reader' - - Bazinga\GeocoderBundle\Doctrine\ORM\GeocoderListener: - class: Bazinga\GeocoderBundle\Doctrine\ORM\GeocoderListener - arguments: - - '@bazinga_geocoder.provider.acme' - - '@Bazinga\GeocoderBundle\Mapping\Driver\AnnotationDriver' - tags: - - { name: doctrine.event_listener, event: onFlush }