function UserRegistrationRestTest::setUp

Same name in other branches
  1. 9 core/modules/user/tests/src/Functional/UserRegistrationRestTest.php \Drupal\Tests\user\Functional\UserRegistrationRestTest::setUp()
  2. 10 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 63

Class

UserRegistrationRestTest
Tests registration of user using REST.

Namespace

Drupal\Tests\user\Functional

Code

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.