You are here

class UserJsonAnonTest in Drupal 10

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

@group rest

Hierarchy

Expanded class hierarchy of UserJsonAnonTest

File

core/modules/user/tests/src/Functional/Rest/UserJsonAnonTest.php, line 10

Namespace

Drupal\Tests\user\Functional\Rest
View source
class UserJsonAnonTest extends UserResourceTestBase {
  use AnonResourceTestTrait;

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

  /**
   * {@inheritdoc}
   */
  protected static $mimeType = 'application/json';

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

}

Members

Namesort descending Modifiers Type Description Overrides
AnonResourceTestTrait::assertAuthenticationEdgeCases protected function
AnonResourceTestTrait::assertResponseWhenMissingAuthentication protected function
UserJsonAnonTest::$defaultTheme protected property
UserJsonAnonTest::$format protected static property
UserJsonAnonTest::$mimeType protected static property
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
UserResourceTestBase::testPatchDxForSecuritySensitiveBaseFields public function Tests PATCHing security-sensitive base fields of the logged in account. 3
UserResourceTestBase::testPatchSecurityOtherUser public function Tests PATCHing security-sensitive base fields to change other users. 2