namespace Drupal\Tests\hal\Functional\EntityResource\Media;
+use Drupal\Core\Cache\Cache;
use Drupal\file\Entity\File;
use Drupal\Tests\hal\Functional\EntityResource\HalEntityNormalizationTrait;
use Drupal\Tests\rest\Functional\AnonResourceTestTrait;
'type' => [
'href' => $this->baseUrl . '/rest/type/media/camelids',
],
- $this->baseUrl . '/rest/relation/media/camelids/field_media_file_1' => [
+ $this->baseUrl . '/rest/relation/media/camelids/field_media_file' => [
[
'href' => $file->url(),
'lang' => 'en',
],
],
'_embedded' => [
- $this->baseUrl . '/rest/relation/media/camelids/field_media_file_1' => [
+ $this->baseUrl . '/rest/relation/media/camelids/field_media_file' => [
[
'_links' => [
'self' => [
],
],
'lang' => 'en',
- 'uri' => [
- [
- 'value' => $file->url(),
- ],
- ],
'uuid' => [
[
'value' => $file->uuid(),
],
],
'lang' => 'en',
- 'uri' => [
- [
- 'value' => $thumbnail->url(),
- ],
- ],
'uuid' => [
[
'value' => $thumbnail->uuid(),
];
}
+ /**
+ * {@inheritdoc}
+ */
+ protected function getExpectedCacheTags() {
+ return Cache::mergeTags(parent::getExpectedCacheTags(), ['config:hal.settings']);
+ }
+
}