namespace Drupal\Tests\rest\Functional\EntityResource\MediaType;
-use Drupal\media\Entity\MediaType;
-use Drupal\Tests\rest\Functional\EntityResource\EntityResourceTestBase;
+@trigger_error('The ' . __NAMESPACE__ . '\MediaTypeResourceTestBase is deprecated in Drupal 8.6.x and will be removed before Drupal 9.0.0. Instead, use Drupal\Tests\media\Functional\Rest\MediaTypeResourceTestBase. See https://www.drupal.org/node/2971931.', E_USER_DEPRECATED);
-abstract class MediaTypeResourceTestBase extends EntityResourceTestBase {
-
- /**
- * {@inheritdoc}
- */
- public static $modules = ['media'];
-
- /**
- * {@inheritdoc}
- */
- protected static $entityTypeId = 'media_type';
-
- /**
- * @var \Drupal\media\MediaTypeInterface
- */
- protected $entity;
-
- /**
- * {@inheritdoc}
- */
- protected function setUpAuthorization($method) {
- $this->grantPermissionsToTestedRole(['administer media types']);
- }
-
- /**
- * {@inheritdoc}
- */
- protected function createEntity() {
- // Create a "Camelids" media type.
- $camelids = MediaType::create([
- 'name' => 'Camelids',
- 'id' => 'camelids',
- 'description' => 'Camelids are large, strictly herbivorous animals with slender necks and long legs.',
- 'source' => 'file',
- ]);
-
- $camelids->save();
-
- return $camelids;
- }
-
- /**
- * {@inheritdoc}
- */
- protected function getExpectedNormalizedEntity() {
- return [
- 'dependencies' => [],
- 'description' => 'Camelids are large, strictly herbivorous animals with slender necks and long legs.',
- 'field_map' => [],
- 'id' => 'camelids',
- 'label' => NULL,
- 'langcode' => 'en',
- 'new_revision' => FALSE,
- 'queue_thumbnail_downloads' => FALSE,
- 'source' => 'file',
- 'source_configuration' => [
- 'source_field' => '',
- ],
- 'status' => TRUE,
- 'uuid' => $this->entity->uuid(),
- ];
- }
-
- /**
- * {@inheritdoc}
- */
- protected function getNormalizedPostEntity() {
- // @todo Update in https://www.drupal.org/node/2300677.
- }
+use Drupal\Tests\media\Functional\Rest\MediaTypeResourceTestBase as MediaTypeResourceTestBaseReal;
+/**
+ * @deprecated in Drupal 8.6.x. Will be removed before Drupal 9.0.0. Use
+ * Drupal\Tests\media\Functional\Rest\MediaTypeResourceTestBase instead.
+ *
+ * @see https://www.drupal.org/node/2971931
+ */
+abstract class MediaTypeResourceTestBase extends MediaTypeResourceTestBaseReal {
}