You are here

class CommentXmlBasicAuthTest in Drupal 10

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

@group rest

Hierarchy

Expanded class hierarchy of CommentXmlBasicAuthTest

File

core/modules/comment/tests/src/Functional/Rest/CommentXmlBasicAuthTest.php, line 11

Namespace

Drupal\Tests\comment\Functional\Rest
View source
class CommentXmlBasicAuthTest extends CommentResourceTestBase {
  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 testPostDxWithoutCriticalBaseFields() {

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

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

    // 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
CommentResourceTestBase::$entity protected property
CommentResourceTestBase::$entityTypeId protected static property
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
CommentTestTrait::addDefaultCommentField public function Adds the default comment field to an entity.
CommentXmlBasicAuthTest::$auth protected static property
CommentXmlBasicAuthTest::$defaultTheme protected property
CommentXmlBasicAuthTest::$format protected static property
CommentXmlBasicAuthTest::$mimeType protected static property
CommentXmlBasicAuthTest::$modules protected static property Overrides CommentResourceTestBase::$modules
CommentXmlBasicAuthTest::testPostDxWithoutCriticalBaseFields public function Tests POSTing a comment without critical base fields. Overrides CommentResourceTestBase::testPostDxWithoutCriticalBaseFields
CommentXmlBasicAuthTest::testPostSkipCommentApproval public function Tests POSTing a comment with and without 'skip comment approval'. Overrides CommentResourceTestBase::testPostSkipCommentApproval