You are here

public function ImageViewBuilderTest::register in Twig Tweak 3.1.x

Same name and namespace in other branches
  1. 3.x tests/src/Kernel/ImageViewBuilderTest.php \Drupal\Tests\twig_tweak\Kernel\ImageViewBuilderTest::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

See also

\Drupal\Tests\KernelTestBase::bootKernel()

File

tests/src/Kernel/ImageViewBuilderTest.php, line 47

Class

ImageViewBuilderTest
A test for ImageViewBuilderTest.

Namespace

Drupal\Tests\twig_tweak\Kernel

Code

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