tests/src/Kernel/LinkitFilterEntityTest.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/tests/src/Kernel/LinkitFilterEntityTest.php b/tests/src/Kernel/LinkitFilterEntityTest.php index 1de2c45..149e2c9 100644 --- a/tests/src/Kernel/LinkitFilterEntityTest.php +++ b/tests/src/Kernel/LinkitFilterEntityTest.php @@ -2,6 +2,7 @@ namespace Drupal\Tests\linkit\Kernel; +use Drupal\Core\DependencyInjection\ContainerBuilder; use Drupal\entity_test\Entity\EntityTest; use Drupal\entity_test\Entity\EntityTestMul; use Drupal\file\Entity\File; @@ -57,6 +58,18 @@ class LinkitFilterEntityTest extends LinkitKernelTestBase { $this->filter = $bag->get('linkit'); } + /** + * {@inheritdoc} + */ + public function register(ContainerBuilder $container) { + parent::register($container); + + // Undo what the parent did, to allow testing path aliases in kernel tests. + $container->getDefinition('path_alias.path_processor') + ->addTag('path_processor_inbound') + ->addTag('path_processor_outbound'); + } + /** * Tests the linkit filter for entities with different access. */