function EntityLinksTest::register

Same name and namespace in other branches
  1. 11.x core/modules/filter/tests/src/Kernel/EntityLinksTest.php \Drupal\Tests\filter\Kernel\EntityLinksTest::register()

Registers test-specific services.

Extend this method in your test to register additional services. This method is called whenever the kernel is rebuilt.

Parameters

\Drupal\Core\DependencyInjection\ContainerBuilder $container: The service container to enhance.

Overrides KernelTestBase::register

File

core/modules/filter/tests/src/Kernel/EntityLinksTest.php, line 122

Class

EntityLinksTest
Tests the behavior of generating entity URLs when using entity links in CKEditor.

Namespace

Drupal\Tests\filter\Kernel

Code

public function register(ContainerBuilder $container) : void {
  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');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.