BlockHalJsonBasicAuthTest.php 616 B

1234567891011121314151617181920212223242526272829303132333435
  1. <?php
  2. namespace Drupal\Tests\block\Functional\Hal;
  3. use Drupal\Tests\block\Functional\Rest\BlockResourceTestBase;
  4. use Drupal\Tests\rest\Functional\BasicAuthResourceTestTrait;
  5. /**
  6. * @group hal
  7. */
  8. class BlockHalJsonBasicAuthTest extends BlockResourceTestBase {
  9. use BasicAuthResourceTestTrait;
  10. /**
  11. * {@inheritdoc}
  12. */
  13. public static $modules = ['hal', 'basic_auth'];
  14. /**
  15. * {@inheritdoc}
  16. */
  17. protected static $format = 'hal_json';
  18. /**
  19. * {@inheritdoc}
  20. */
  21. protected static $mimeType = 'application/hal+json';
  22. /**
  23. * {@inheritdoc}
  24. */
  25. protected static $auth = 'basic_auth';
  26. }