function UserResourceTestBase::setUp

Overrides EntityResourceTestBase::setUp

File

core/modules/user/tests/src/Functional/Rest/UserResourceTestBase.php, line 57

Class

UserResourceTestBase
Resource test base for the user entity.

Namespace

Drupal\Tests\user\Functional\Rest

Code

protected function setUp() : void {
  if (in_array($this->name(), [
    'testPatchDxForSecuritySensitiveBaseFields',
    'testPatchSecurityOtherUser',
  ], TRUE)) {
    if (static::$format === 'xml') {
      $this->markTestSkipped('Deserialization of the XML format is not supported.');
    }
    if (static::$auth === FALSE) {
      $this->markTestSkipped('The anonymous user is never allowed to modify itself.');
    }
  }
  parent::setUp();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.