public function InvoiceKernelTestBase::register in Commerce Invoice 8.2
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/ InvoiceKernelTestBase.php, line 59  
Class
- InvoiceKernelTestBase
 - Provides a base class for invoice kernel tests.
 
Namespace
Drupal\Tests\commerce_invoice\KernelCode
public function register(ContainerBuilder $container) {
  parent::register($container);
  $container
    ->register('stream_wrapper.private', 'Drupal\\Core\\StreamWrapper\\PrivateStream')
    ->addTag('stream_wrapper', [
    'scheme' => 'private',
  ]);
}