You are here

public function SubstitutionPluginTest::register in Linkit 8.5

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

See also

\Drupal\Tests\KernelTestBase::bootKernel()

File

tests/src/Kernel/SubstitutionPluginTest.php, line 75

Class

SubstitutionPluginTest
Tests the substitution plugins.

Namespace

Drupal\Tests\linkit\Kernel

Code

public function register(ContainerBuilder $container) {
  parent::register($container);
  $container
    ->register('stream_wrapper.public', 'Drupal\\Core\\StreamWrapper\\PublicStream')
    ->addTag('stream_wrapper', [
    'scheme' => 'public',
  ]);
}