Mercurial > hg > isophonics-drupal-site
diff core/modules/user/tests/src/Kernel/UserServiceProviderFallbackTest.php @ 14:1fec387a4317
Update Drupal core to 8.5.2 via Composer
author | Chris Cannam |
---|---|
date | Mon, 23 Apr 2018 09:46:53 +0100 |
parents | |
children |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/modules/user/tests/src/Kernel/UserServiceProviderFallbackTest.php Mon Apr 23 09:46:53 2018 +0100 @@ -0,0 +1,38 @@ +<?php + +namespace Drupal\Tests\user\Kernel; + +use Drupal\Core\DependencyInjection\ContainerBuilder; +use Drupal\KernelTests\KernelTestBase; + +/** + * Tests \Drupal\user\UserServiceProvider. + * + * @group user + * @group legacy + */ +class UserServiceProviderFallbackTest extends KernelTestBase { + + /** + * Modules to enable. + * + * @var array + */ + public static $modules = ['user']; + + /** + * Tests that user.tempstore.expire equals tempstore.expire if not customized. + */ + public function testUserServiceProvider() { + $this->assertEquals(1000, $this->container->getParameter('user.tempstore.expire')); + } + + /** + * {@inheritdoc} + */ + public function register(ContainerBuilder $container) { + $container->setParameter('tempstore.expire', 1000); + parent::register($container); + } + +}