Skip to content

Commit

Permalink
[Tests] Dropped providing fallback Kernel if not defined (#345)
Browse files Browse the repository at this point in the history
For more details see #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.
  • Loading branch information
alongosz authored May 6, 2024
1 parent c97c8e0 commit a93fbd3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions src/contracts/Test/IbexaKernelTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}
}
2 changes: 1 addition & 1 deletion src/contracts/Test/IbexaTestKernel.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down

0 comments on commit a93fbd3

Please sign in to comment.