You are here

public function RestRegisterUserTest::setUp in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/user/tests/src/Functional/RestRegisterUserTest.php \Drupal\Tests\user\Functional\RestRegisterUserTest::setUp()

Overrides ResourceTestBase::setUp

File

core/modules/user/tests/src/Functional/RestRegisterUserTest.php, line 62

Class

RestRegisterUserTest
Tests user registration via REST resource.

Namespace

Drupal\Tests\user\Functional

Code

public function setUp() {
  parent::setUp();
  $auth = isset(static::$auth) ? [
    static::$auth,
  ] : [];
  $this
    ->provisionResource([
    static::$format,
  ], $auth);
  $this
    ->setUpAuthorization('POST');
}