You are here

class BlockJsonCookieTest in Drupal 10

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

@group rest

Hierarchy

Expanded class hierarchy of BlockJsonCookieTest

File

core/modules/block/tests/src/Functional/Rest/BlockJsonCookieTest.php, line 10

Namespace

Drupal\Tests\block\Functional\Rest
View source
class BlockJsonCookieTest extends BlockResourceTestBase {
  use CookieResourceTestTrait;

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

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

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

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

}

Members

Namesort descending Modifiers Type Description Overrides
BlockJsonCookieTest::$auth protected static property
BlockJsonCookieTest::$defaultTheme protected property
BlockJsonCookieTest::$format protected static property
BlockJsonCookieTest::$mimeType protected static property
BlockResourceTestBase::$entity protected property
BlockResourceTestBase::$entityTypeId protected static property
BlockResourceTestBase::$modules protected static property 2
BlockResourceTestBase::createEntity protected function
BlockResourceTestBase::getExpectedCacheContexts protected function
BlockResourceTestBase::getExpectedCacheTags protected function
BlockResourceTestBase::getExpectedNormalizedEntity protected function
BlockResourceTestBase::getExpectedUnauthorizedAccessCacheability protected function @todo Fix this in https://www.drupal.org/node/2820315.
BlockResourceTestBase::getExpectedUnauthorizedAccessMessage protected function
BlockResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability protected function
BlockResourceTestBase::getNormalizedPostEntity protected function
BlockResourceTestBase::setUpAuthorization protected function
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