summaryrefslogtreecommitdiffstats
path: root/core/modules/migrate_drupal
diff options
context:
space:
mode:
authorLee Rowlands2018-06-29 22:50:50 (GMT)
committerLee Rowlands2018-06-29 22:50:50 (GMT)
commit58d601eb0a94ae40a4b794caf47f91c096c10f33 (patch)
tree8796b14e86d68754df512c0361a025e45975b62f /core/modules/migrate_drupal
parent713294e96e791fc7aaab7ded3f01a288d9263eef (diff)
Issue #2976889 by phenaproxima, xjm, samuel.mortenson, chr.fritsch: Add a trait to create media types in tests and replace MediaFunctionalTestCreateMediaTypeTrait
Diffstat (limited to 'core/modules/migrate_drupal')
-rw-r--r--core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php b/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php
index 095de33..e0fd8ed 100644
--- a/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php
+++ b/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/ContentEntityTest.php
@@ -16,7 +16,7 @@ use Drupal\node\Entity\Node;
use Drupal\node\Entity\NodeType;
use Drupal\taxonomy\Entity\Term;
use Drupal\taxonomy\Entity\Vocabulary;
-use Drupal\Tests\media\Functional\MediaFunctionalTestCreateMediaTypeTrait;
+use Drupal\Tests\media\Traits\MediaTypeCreationTrait;
use Drupal\user\Entity\User;
/**
@@ -27,7 +27,7 @@ use Drupal\user\Entity\User;
class ContentEntityTest extends KernelTestBase {
use EntityReferenceTestTrait;
- use MediaFunctionalTestCreateMediaTypeTrait;
+ use MediaTypeCreationTrait;
/**
* {@inheritdoc}
@@ -344,7 +344,7 @@ class ContentEntityTest extends KernelTestBase {
'source' => 'test',
'new_revision' => FALSE,
];
- $media_type = $this->createMediaType($values);
+ $media_type = $this->createMediaType('test', $values);
$media = Media::create([
'name' => 'Foo media',
'uid' => $this->user->id(),