DateFormatHalJsonBasicAuthTest.php 686 B

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