function UserServiceProviderTest::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/user/tests/src/Kernel/UserServiceProviderTest.php, line 35

Class

UserServiceProviderTest
Tests \Drupal\user\UserServiceProvider.

Namespace

Drupal\Tests\user\Kernel

Code

public function register(ContainerBuilder $container) {
    $container->setParameter('user.tempstore.expire', 1000);
    parent::register($container);
}

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