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 and barw4 committed Oct 17, 2024
1 parent 77145c3 commit 8251a42
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 @@ -34,7 +34,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 8251a42

Please sign in to comment.