function UserJsonBasicAuthDecoratedTest::testServiceDecorated
Same name in other branches
- 10 core/modules/user/tests/src/Functional/Rest/UserJsonBasicAuthDecoratedTest.php \Drupal\Tests\user\Functional\Rest\UserJsonBasicAuthDecoratedTest::testServiceDecorated()
Test that the UserAuthDecorator is providing user.auth.
File
-
core/
modules/ user/ tests/ src/ Functional/ Rest/ UserJsonBasicAuthDecoratedTest.php, line 23
Class
- UserJsonBasicAuthDecoratedTest
- Run UserJsonBasicAuthTest with a user.auth decorator.
Namespace
Drupal\Tests\user\Functional\RestCode
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.