You are here

class CommentJsonCookieTest in Drupal 10

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

@group rest

Hierarchy

Expanded class hierarchy of CommentJsonCookieTest

File

core/modules/comment/tests/src/Functional/Rest/CommentJsonCookieTest.php, line 10

Namespace

Drupal\Tests\comment\Functional\Rest
View source
class CommentJsonCookieTest extends CommentResourceTestBase {
  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
CommentJsonCookieTest::$auth protected static property
CommentJsonCookieTest::$defaultTheme protected property
CommentJsonCookieTest::$format protected static property
CommentJsonCookieTest::$mimeType protected static property
CommentResourceTestBase::$entity protected property
CommentResourceTestBase::$entityTypeId protected static property
CommentResourceTestBase::$modules protected static property 2
CommentResourceTestBase::$patchProtectedFieldNames protected static property 2
CommentResourceTestBase::createEntity protected function
CommentResourceTestBase::getExpectedCacheContexts protected function
CommentResourceTestBase::getExpectedCacheTags protected function
CommentResourceTestBase::getExpectedNormalizedEntity protected function
CommentResourceTestBase::getExpectedUnauthorizedAccessMessage protected function
CommentResourceTestBase::getExpectedUnauthorizedEntityAccessCacheability protected function
CommentResourceTestBase::getNormalizedPatchEntity protected function
CommentResourceTestBase::getNormalizedPostEntity protected function
CommentResourceTestBase::setUpAuthorization protected function
CommentResourceTestBase::testPostDxWithoutCriticalBaseFields public function Tests POSTing a comment without critical base fields. 3
CommentResourceTestBase::testPostSkipCommentApproval public function Tests POSTing a comment with and without 'skip comment approval'. 3
CommentTestTrait::addDefaultCommentField public function Adds the default comment field to an entity.
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