From d74c85062190a6ef3b4036de3cbc4e61302c2e19 Mon Sep 17 00:00:00 2001 From: jf-cbd Date: Fri, 21 Feb 2025 15:28:38 +0100 Subject: [PATCH] =?UTF-8?q?N=C2=B07870=20-=20Tests:=20access=20the=20symfo?= =?UTF-8?q?ny=20service=20container=20to=20instantiate=20services?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php b/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php index 0a07792e0..f72444b79 100644 --- a/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php +++ b/tests/php-unit-tests/src/BaseTestCase/ItopTestCase.php @@ -9,7 +9,7 @@ namespace Combodo\iTop\Test\UnitTest; use CMDBSource; use DeprecatedCallsLog; use MySQLTransactionNotClosedException; -use PHPUnit\Framework\TestCase; +use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; use ReflectionMethod; use SetupUtils; use Symfony\Component\HttpKernel\KernelInterface; @@ -23,7 +23,7 @@ use const DEBUG_BACKTRACE_IGNORE_ARGS; * * @since 3.0.4 3.1.1 3.2.0 N°6658 move some setUp/tearDown code to the corresponding methods *BeforeClass to speed up tests process time. */ -abstract class ItopTestCase extends TestCase +abstract class ItopTestCase extends KernelTestCase { public const TEST_LOG_DIR = 'test';