3 namespace Drupal\Tests\user\Kernel;
5 use Drupal\Core\DependencyInjection\ContainerBuilder;
6 use Drupal\KernelTests\KernelTestBase;
9 * Tests \Drupal\user\UserServiceProvider.
14 class UserServiceProviderTest extends KernelTestBase {
21 public static $modules = ['user'];
24 * Tests that tempstore.expire is set to user.tempstore.expire.
26 * @expectedDeprecation The container parameter "user.tempstore.expire" is deprecated. Use "tempstore.expire" instead. See https://www.drupal.org/node/2935639.
28 public function testUserServiceProvider() {
29 $this->assertEquals(1000, $this->container->getParameter('tempstore.expire'));
35 public function register(ContainerBuilder $container) {
36 $container->setParameter('user.tempstore.expire', 1000);
37 parent::register($container);