Mercurial > hg > isophonics-drupal-site
comparison 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 |
comparison
equal
deleted
inserted
replaced
13:5fb285c0d0e3 | 14:1fec387a4317 |
---|---|
1 <?php | |
2 | |
3 namespace Drupal\Tests\user\Kernel; | |
4 | |
5 use Drupal\Core\DependencyInjection\ContainerBuilder; | |
6 use Drupal\KernelTests\KernelTestBase; | |
7 | |
8 /** | |
9 * Tests \Drupal\user\UserServiceProvider. | |
10 * | |
11 * @group user | |
12 * @group legacy | |
13 */ | |
14 class UserServiceProviderFallbackTest extends KernelTestBase { | |
15 | |
16 /** | |
17 * Modules to enable. | |
18 * | |
19 * @var array | |
20 */ | |
21 public static $modules = ['user']; | |
22 | |
23 /** | |
24 * Tests that user.tempstore.expire equals tempstore.expire if not customized. | |
25 */ | |
26 public function testUserServiceProvider() { | |
27 $this->assertEquals(1000, $this->container->getParameter('user.tempstore.expire')); | |
28 } | |
29 | |
30 /** | |
31 * {@inheritdoc} | |
32 */ | |
33 public function register(ContainerBuilder $container) { | |
34 $container->setParameter('tempstore.expire', 1000); | |
35 parent::register($container); | |
36 } | |
37 | |
38 } |