You are here

class UserXmlCookieTest in Drupal 10

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

@group rest

Hierarchy

Expanded class hierarchy of UserXmlCookieTest

File

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

Namespace

Drupal\Tests\user\Functional\Rest
View source
class UserXmlCookieTest extends UserResourceTestBase {
  use CookieResourceTestTrait;
  use XmlEntityNormalizationQuirksTrait;

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

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

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

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

  /**
   * {@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
CookieResourceTestTrait::$csrfToken protected property The CSRF token.
CookieResourceTestTrait::$logoutToken protected property The logout token.
CookieResourceTestTrait::$sessionCookie protected property The session cookie.
CookieResourceTestTrait::assertAuthenticationEdgeCases protected function
CookieResourceTestTrait::assertResponseWhenMissingAuthentication protected function
CookieResourceTestTrait::getAuthenticationRequestOptions protected function
CookieResourceTestTrait::initAuthentication protected function
UserResourceTestBase::$entity protected property
UserResourceTestBase::$entityTypeId protected static property
UserResourceTestBase::$firstCreatedEntityId protected static property
UserResourceTestBase::$labelFieldName protected static property
UserResourceTestBase::$modules protected static property 2
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
UserXmlCookieTest::$auth protected static property
UserXmlCookieTest::$defaultTheme protected property
UserXmlCookieTest::$format protected static property
UserXmlCookieTest::$mimeType protected static property
UserXmlCookieTest::testPatchDxForSecuritySensitiveBaseFields public function Tests PATCHing security-sensitive base fields of the logged in account. Overrides UserResourceTestBase::testPatchDxForSecuritySensitiveBaseFields
UserXmlCookieTest::testPatchSecurityOtherUser public function Tests PATCHing security-sensitive base fields to change other users. Overrides UserResourceTestBase::testPatchSecurityOtherUser