Skip to content

Commit 310c0a8

Browse files
committed
Updated KERNEL_CLASS in PHPUnit configuration to use IbexaSolrTestKernel and added CoreSolrTestKernel implementation
1 parent acf21b8 commit 310c0a8

File tree

2 files changed

+22
-1
lines changed

2 files changed

+22
-1
lines changed

phpunit-integration-legacy-solr.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
<env name="CORES_SETUP" value="dedicated"/>
1414
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
1515
<ini name="error_reporting" value="-1"/>
16-
<env name="KERNEL_CLASS" value="Ibexa\Tests\Integration\Core\CoreTestKernel" />
16+
<env name="KERNEL_CLASS" value="Ibexa\Contracts\Solr\Test\IbexaSolrTestKernel"/>
1717
<env name="SEARCH_ENGINE" value="solr"/>
1818
<env name="DATABASE_URL" value="sqlite://:memory:"/>
1919
<env name="SYMFONY_DEPRECATIONS_HELPER" value="disabled"/>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
3+
/**
4+
* @copyright Copyright (C) Ibexa AS. All rights reserved.
5+
* @license For full copyright and license information view LICENSE file distributed with this source code.
6+
*/
7+
8+
namespace Ibexa\Tests\Integration\Core;
9+
10+
use Ibexa\Contracts\Solr\Test\IbexaSolrTestKernel;
11+
use Symfony\Component\Config\Loader\LoaderInterface;
12+
13+
final class CoreSolrTestKernel extends IbexaSolrTestKernel
14+
{
15+
protected function loadConfiguration(LoaderInterface $loader): void
16+
{
17+
parent::loadConfiguration($loader);
18+
19+
$loader->load(__DIR__ . '/Resources/services/services.php');
20+
}
21+
}

0 commit comments

Comments
 (0)