Skip to content

Commit

Permalink
NGSTACK-843 move RouterStub to tests/lib
Browse files Browse the repository at this point in the history
  • Loading branch information
Katarina Miočić committed Apr 22, 2024
1 parent b04f3aa commit ffae211
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ protected function setUp(): void
new FileLocator(__DIR__ . '/_fixtures'),
);

$loader->load('services.yaml');
$loader->load('indexable_field_types.yaml');

$this->setParameter('kernel.bundles', []);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,3 @@ services:
Ibexa\FieldTypeRichText\FieldType\RichText\SearchField:
tags:
- { name: ibexa.field_type.indexable, alias: ezrichtext }

Ibexa\Bundle\Core\Routing\UrlAliasRouter:
class: Netgen\IbexaSearchExtraBundle\Tests\Implementation\RouterStub
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

declare(strict_types=1);

namespace Netgen\IbexaSearchExtraBundle\Tests\Implementation;
namespace Netgen\IbexaSearchExtra\Tests\Integration\Implementation\Stubs;

use Symfony\Component\Routing\RequestContext;
use Symfony\Component\Routing\RouterInterface;
Expand Down
4 changes: 4 additions & 0 deletions tests/lib/Integration/Resources/config/services.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -86,3 +86,7 @@ services:
'Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\Message\Search\User\UpdateUser': ['@Netgen\IbexaSearchExtra\Core\Search\Common\Messenger\MessageHandler\Search\User\UpdateUserHandler']

netgen.ibexa_search_extra.asynchronous_indexing.messenger.bus: '@netgen_test.ibexa_search_extra.asynchronous_indexing.messenger.bus'

Ibexa\Bundle\Core\Routing\UrlAliasRouter:
class: Netgen\IbexaSearchExtra\Tests\Integration\Implementation\Stubs\RouterStub

2 changes: 1 addition & 1 deletion tests/lib/Integration/SetupFactory/RegressionSolr.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected function externalBuildContainer(ContainerBuilder $containerBuilder): v

$testConfigPath = __DIR__ . '/../Resources/config/';
$loader = new YamlFileLoader($containerBuilder, new FileLocator($testConfigPath));
$loader->load('services.yaml');
$loader->load('indexable_field_types.yaml');

// Needs to be added first because other passes depend on it
$containerBuilder->addCompilerPass(new Compiler\TagSubdocumentCriterionVisitorsPass());
Expand Down
2 changes: 1 addition & 1 deletion tests/lib/Integration/SetupFactory/Solr.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ protected function externalBuildContainer(ContainerBuilder $containerBuilder): v

$testConfigPath = __DIR__ . '/../Resources/config/';
$loader = new YamlFileLoader($containerBuilder, new FileLocator($testConfigPath));
$loader->load('services.yaml');
$loader->load('indexable_field_types.yaml');
$loader->load('event_dispatcher_override.yaml');

// Needs to be added first because other passes depend on it
Expand Down

0 comments on commit ffae211

Please sign in to comment.