function UserRegistrationRestTest::setUp
Same name in other branches
- 9 core/modules/user/tests/src/Functional/UserRegistrationRestTest.php \Drupal\Tests\user\Functional\UserRegistrationRestTest::setUp()
- 11.x core/modules/user/tests/src/Functional/UserRegistrationRestTest.php \Drupal\Tests\user\Functional\UserRegistrationRestTest::setUp()
Overrides ResourceTestBase::setUp
File
-
core/
modules/ user/ tests/ src/ Functional/ UserRegistrationRestTest.php, line 62
Class
- UserRegistrationRestTest
- Tests registration of user using REST.
Namespace
Drupal\Tests\user\FunctionalCode
public function setUp() : void {
parent::setUp();
$auth = isset(static::$auth) ? [
static::$auth,
] : [];
$this->provisionResource([
static::$format,
], $auth);
$this->setUpAuthorization('POST');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.