BlockXmlBasicAuthTest.php 667 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace Drupal\Tests\block\Functional\Rest;
  3. use Drupal\Tests\rest\Functional\BasicAuthResourceTestTrait;
  4. use Drupal\Tests\rest\Functional\EntityResource\XmlEntityNormalizationQuirksTrait;
  5. /**
  6. * @group rest
  7. */
  8. class BlockXmlBasicAuthTest extends BlockResourceTestBase {
  9. use BasicAuthResourceTestTrait;
  10. use XmlEntityNormalizationQuirksTrait;
  11. /**
  12. * {@inheritdoc}
  13. */
  14. public static $modules = ['basic_auth'];
  15. /**
  16. * {@inheritdoc}
  17. */
  18. protected static $format = 'xml';
  19. /**
  20. * {@inheritdoc}
  21. */
  22. protected static $mimeType = 'text/xml; charset=UTF-8';
  23. /**
  24. * {@inheritdoc}
  25. */
  26. protected static $auth = 'basic_auth';
  27. }