From 4dd05ca8b217eefcc3d92c668c26c6450c323ff7 Mon Sep 17 00:00:00 2001 From: Jacob Dreesen Date: Fri, 30 Aug 2024 17:18:44 +0200 Subject: [PATCH] use Pimcore\Test\KernelTestCase instead of Symfony\Bundle\FrameworkBundle\Test\KernelTestCase --- src/Database/ResetDatabase.php | 2 +- src/Exception/DoesNotExtendKernelTestCase.php | 4 ++-- src/Pimcore/WithoutCache.php | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Database/ResetDatabase.php b/src/Database/ResetDatabase.php index 5ea6039..12fb611 100644 --- a/src/Database/ResetDatabase.php +++ b/src/Database/ResetDatabase.php @@ -6,7 +6,7 @@ use DAMA\DoctrineTestBundle\Doctrine\DBAL\StaticDriver; use Neusta\Pimcore\TestingFramework\Exception\DoesNotExtendKernelTestCase; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; +use Pimcore\Test\KernelTestCase; /** * @mixin KernelTestCase diff --git a/src/Exception/DoesNotExtendKernelTestCase.php b/src/Exception/DoesNotExtendKernelTestCase.php index a4b2ab0..eda87d7 100644 --- a/src/Exception/DoesNotExtendKernelTestCase.php +++ b/src/Exception/DoesNotExtendKernelTestCase.php @@ -4,7 +4,7 @@ namespace Neusta\Pimcore\TestingFramework\Exception; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; +use Pimcore\Test\KernelTestCase; final class DoesNotExtendKernelTestCase extends \RuntimeException { @@ -13,7 +13,7 @@ public static function forTrait(string $trait): self return new self(\sprintf( 'The trait "%s" can only be used on TestCases that extend "%s".', $trait, - KernelTestCase::class + KernelTestCase::class, )); } } diff --git a/src/Pimcore/WithoutCache.php b/src/Pimcore/WithoutCache.php index a95d2b5..e524c11 100644 --- a/src/Pimcore/WithoutCache.php +++ b/src/Pimcore/WithoutCache.php @@ -6,7 +6,7 @@ use Neusta\Pimcore\TestingFramework\Exception\DoesNotExtendKernelTestCase; use Pimcore\Cache; -use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; +use Pimcore\Test\KernelTestCase; /** * @mixin KernelTestCase