UserServiceProviderFallbackTest.php in Drupal 8
File
core/modules/user/tests/src/Kernel/UserServiceProviderFallbackTest.php
View source
<?php
namespace Drupal\Tests\user\Kernel;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\KernelTests\KernelTestBase;
class UserServiceProviderFallbackTest extends KernelTestBase {
public static $modules = [
'user',
];
public function testUserServiceProvider() {
$this
->assertEquals(1000, $this->container
->getParameter('user.tempstore.expire'));
}
public function register(ContainerBuilder $container) {
$container
->setParameter('tempstore.expire', 1000);
parent::register($container);
}
}