From 2c63e7a15c68e9e01a368e8a23473fb34714d02c Mon Sep 17 00:00:00 2001 From: Brabli <67018167+Brabli@users.noreply.github.com> Date: Wed, 20 Jul 2022 22:48:13 +0100 Subject: [PATCH] Tests do work --- tests/AppKernel.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/tests/AppKernel.php b/tests/AppKernel.php index bc4e526..111e03f 100644 --- a/tests/AppKernel.php +++ b/tests/AppKernel.php @@ -16,14 +16,10 @@ class AppKernel extends Kernel */ public function registerBundles(): array { - $bundles = array(); - - if (in_array($this->getEnvironment(), array('test'))) { - $bundles[] = new FrameworkBundle(); - $bundles[] = new PcmGeocodeBundle(); - } - - return $bundles; + return [ + new FrameworkBundle(), + new PcmGeocodeBundle() + ]; } /**