class CommentXmlAnonTest in Drupal 10
Same name and namespace in other branches
- 8 core/modules/comment/tests/src/Functional/Rest/CommentXmlAnonTest.php \Drupal\Tests\comment\Functional\Rest\CommentXmlAnonTest
- 9 core/modules/comment/tests/src/Functional/Rest/CommentXmlAnonTest.php \Drupal\Tests\comment\Functional\Rest\CommentXmlAnonTest
@group rest
Hierarchy
- class \Drupal\Tests\BrowserTestBase extends \PHPUnit\Framework\TestCase uses \Drupal\Tests\PhpUnitCompatibilityTrait, \Symfony\Bridge\PhpUnit\ExpectDeprecationTrait, FunctionalTestSetupTrait, TestSetupTrait, BlockCreationTrait, ConfigTestTrait, ExtensionListTestTrait, ContentTypeCreationTrait, NodeCreationTrait, RandomGeneratorTrait, TestRequirementsTrait, PhpUnitWarnings, UiHelperTrait, UserCreationTrait, XdebugRequestTrait
- class \Drupal\Tests\rest\Functional\ResourceTestBase
- class \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase
- class \Drupal\Tests\comment\Functional\Rest\CommentResourceTestBase uses CommentTestTrait
- class \Drupal\Tests\comment\Functional\Rest\CommentXmlAnonTest uses AnonResourceTestTrait, XmlEntityNormalizationQuirksTrait
- class \Drupal\Tests\comment\Functional\Rest\CommentResourceTestBase uses CommentTestTrait
- class \Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase
- class \Drupal\Tests\rest\Functional\ResourceTestBase
Expanded class hierarchy of CommentXmlAnonTest
File
- core/
modules/ comment/ tests/ src/ Functional/ Rest/ CommentXmlAnonTest.php, line 11
Namespace
Drupal\Tests\comment\Functional\RestView source
class CommentXmlAnonTest extends CommentResourceTestBase {
use AnonResourceTestTrait;
use XmlEntityNormalizationQuirksTrait;
/**
* {@inheritdoc}
*/
protected static $format = 'xml';
/**
* {@inheritdoc}
*/
protected static $mimeType = 'text/xml; charset=UTF-8';
/**
* {@inheritdoc}
*/
protected $defaultTheme = 'stark';
/**
* {@inheritdoc}
*
* Anonymous users cannot edit their own comments.
*
* @see \Drupal\comment\CommentAccessControlHandler::checkAccess
*
* Therefore we grant them the 'administer comments' permission for the
* purpose of this test.
*
* @see ::setUpAuthorization
*/
protected static $patchProtectedFieldNames = [
'pid',
'entity_id',
'changed',
'thread',
'entity_type',
'field_name',
];
/**
* {@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();
}
}