function LoginFinalizerTest::setUp
Same name and namespace in other branches
- 11.x core/modules/user/tests/src/Kernel/LoginFinalizerTest.php \Drupal\Tests\user\Kernel\LoginFinalizerTest::setUp()
File
-
core/
modules/ user/ tests/ src/ Kernel/ LoginFinalizerTest.php, line 39
Class
- LoginFinalizerTest
- Tests login finalization.
Namespace
Drupal\Tests\user\KernelCode
protected function setUp() : void {
parent::setUp();
$this->installEntitySchema('user');
// Create a stub time service.
$time = $this->createStub(TimeInterface::class);
$time->method('getRequestTime')
->willReturn(1234567890);
$this->container
->set('datetime.time', $time);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.