function UserLoginDecoratedTest::testServiceDecorated
Same name in other branches
- 10 core/modules/user/tests/src/Functional/UserLoginDecoratedTest.php \Drupal\Tests\user\Functional\UserLoginDecoratedTest::testServiceDecorated()
Test that the UserAuthDecorator is providing user.auth.
File
-
core/
modules/ user/ tests/ src/ Functional/ UserLoginDecoratedTest.php, line 26
Class
- UserLoginDecoratedTest
- Ensure that login works as expected with a decorator.
Namespace
Drupal\Tests\user\FunctionalCode
public function testServiceDecorated() : void {
$service = \Drupal::service('user.auth');
$this->assertInstanceOf(UserAuthDecorator::class, $service);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.