You are here

class UserXmlBasicAuthTest in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/user/tests/src/Functional/Rest/UserXmlBasicAuthTest.php \Drupal\Tests\user\Functional\Rest\UserXmlBasicAuthTest
  2. 9 core/modules/user/tests/src/Functional/Rest/UserXmlBasicAuthTest.php \Drupal\Tests\user\Functional\Rest\UserXmlBasicAuthTest

@group rest

Hierarchy

Expanded class hierarchy of UserXmlBasicAuthTest

File

core/modules/user/tests/src/Functional/Rest/UserXmlBasicAuthTest.php, line 11

Namespace

Drupal\Tests\user\Functional\Rest
View source
class UserXmlBasicAuthTest extends UserResourceTestBase {
  use BasicAuthResourceTestTrait;
  use XmlEntityNormalizationQuirksTrait;

  /**
   * {@inheritdoc}
   */
  protected static $modules = [
    'basic_auth',
  ];

  /**
   * {@inheritdoc}
   */
  protected $defaultTheme = 'stark';

  /**
   * {@inheritdoc}
   */
  protected static $format = 'xml';

  /**
   * {@inheritdoc}
   */
  protected static $mimeType = 'text/xml; charset=UTF-8';

  /**
   * {@inheritdoc}
   */
  protected static $auth = 'basic_auth';

  /**
   * {@inheritdoc}
   */
  public function testPatchDxForSecuritySensitiveBaseFields() {

    // Deserialization of the XML format is not supported.
    $this
      ->markTestSkipped();
  }

  /**
   * {@inheritdoc}
   */
  public function testPatchSecurityOtherUser() {

    // Deserialization of the XML format is not supported.
    $this
      ->markTestSkipped();
  }

}

Members

Namesort descending Modifiers Type Description Overrides
BasicAuthResourceTestTrait::assertAuthenticationEdgeCases protected function 1
BasicAuthResourceTestTrait::assertResponseWhenMissingAuthentication protected function 1
BasicAuthResourceTestTrait::getAuthenticationRequestOptions protected function
UserResourceTestBase::$entity protected property
UserResourceTestBase::$entityTypeId protected static property
UserResourceTestBase::$firstCreatedEntityId protected static property
UserResourceTestBase::$labelFieldName protected static property
UserResourceTestBase::$patchProtectedFieldNames protected static property
UserResourceTestBase::$secondCreatedEntityId protected static property
UserResourceTestBase::assertRpcLogin protected function Verifies that logging in with the given username and password works.
UserResourceTestBase::createAnotherEntity protected function
UserResourceTestBase::createEntity protected function
UserResourceTestBase::getExpectedCacheContexts protected function
UserResourceTestBase::getExpectedNormalizedEntity protected function
UserResourceTestBase::getExpectedUnauthorizedAccessMessage protected function
UserResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability protected function
UserResourceTestBase::getNormalizedPostEntity protected function
UserResourceTestBase::setUpAuthorization protected function
UserXmlBasicAuthTest::$auth protected static property
UserXmlBasicAuthTest::$defaultTheme protected property
UserXmlBasicAuthTest::$format protected static property
UserXmlBasicAuthTest::$mimeType protected static property
UserXmlBasicAuthTest::$modules protected static property Overrides UserResourceTestBase::$modules
UserXmlBasicAuthTest::testPatchDxForSecuritySensitiveBaseFields public function Tests PATCHing security-sensitive base fields of the logged in account. Overrides UserResourceTestBase::testPatchDxForSecuritySensitiveBaseFields
UserXmlBasicAuthTest::testPatchSecurityOtherUser public function Tests PATCHing security-sensitive base fields to change other users. Overrides UserResourceTestBase::testPatchSecurityOtherUser