From a93fbd31d636ba195f5e121d1782cc2aba2ae7e8 Mon Sep 17 00:00:00 2001 From: Andrew Longosz Date: Mon, 6 May 2024 16:13:40 +0200 Subject: [PATCH] [Tests] Dropped providing fallback Kernel if not defined (#345) For more details see https://github.com/ibexa/core/pull/345 Key changes: * [Tests] Dropped providing fallback Test Kernel if not defined * [Tests] Made IbexaTestKernel and IbexaKernelTestCase internal For both 1st and 3rd party, contracts from ibexa/test-core need to be used instead. --- src/contracts/Test/IbexaKernelTestCase.php | 12 +----------- src/contracts/Test/IbexaTestKernel.php | 2 +- 2 files changed, 2 insertions(+), 12 deletions(-) diff --git a/src/contracts/Test/IbexaKernelTestCase.php b/src/contracts/Test/IbexaKernelTestCase.php index 25effb04e5..61efcdd0b5 100644 --- a/src/contracts/Test/IbexaKernelTestCase.php +++ b/src/contracts/Test/IbexaKernelTestCase.php @@ -8,22 +8,12 @@ namespace Ibexa\Contracts\Core\Test; -use LogicException; use Symfony\Bundle\FrameworkBundle\Test\KernelTestCase; /** - * @experimental + * @internal For core tests only. Use \Ibexa\Contracts\Test\Core\IbexaKernelTestCase from ibexa/test-core instead. */ abstract class IbexaKernelTestCase extends KernelTestCase { use IbexaKernelTestTrait; - - protected static function getKernelClass(): string - { - try { - return parent::getKernelClass(); - } catch (LogicException $e) { - return IbexaTestKernel::class; - } - } } diff --git a/src/contracts/Test/IbexaTestKernel.php b/src/contracts/Test/IbexaTestKernel.php index 0e547c3ff1..0406db7a4a 100644 --- a/src/contracts/Test/IbexaTestKernel.php +++ b/src/contracts/Test/IbexaTestKernel.php @@ -33,7 +33,7 @@ use Symfony\Component\HttpKernel\Kernel; /** - * @experimental + * @internal For core tests only. Use \Ibexa\Contracts\Test\Core\IbexaTestKernel from ibexa/test-core instead. * * Baseline test kernel that dependent packages can extend for their integration tests. *