diff --git a/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ContentEntityTestBase.php b/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ContentEntityTestBase.php index 8837bee3df..7effac806a 100755 --- a/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ContentEntityTestBase.php +++ b/core/modules/migrate_drupal/tests/src/Kernel/Plugin/migrate/source/d8/ContentEntityTestBase.php @@ -4,6 +4,7 @@ use Drupal\Core\Entity\EntityInterface; use Drupal\file\Entity\File; +use Drupal\language\Entity\ConfigurableLanguage; use Drupal\media\Entity\Media; use Drupal\media\Entity\MediaType; use Drupal\node\Entity\Node; @@ -13,8 +14,6 @@ /** * Tests the entity content source plugin. - * - * @group migrate_drupal */ abstract class ContentEntityTestBase extends MigrateTestBase { @@ -34,6 +33,8 @@ 'media_test_source', 'text', 'filter', + 'language', + 'content_translation', ]; /** @@ -51,6 +52,7 @@ protected $user; /** + * The test node. * * @var \Drupal\node\NodeInterface */ @@ -80,9 +82,12 @@ protected function setUp() { $this->installSchema('system', ['sequences']); $this->installSchema('user', 'users_data'); $this->installSchema('file', 'file_usage'); + $this->installSchema('node', ['node_access']); $this->installConfig($this->modules); + ConfigurableLanguage::createFromLangcode('fr')->save(); + // Create a media type. $mediaType = $this->createMediaType('test'); @@ -99,6 +104,9 @@ protected function setUp() { 'uid' => $this->user->id(), ]); $this->node->save(); + $this->node->addTranslation('fr', [ + 'title' => 'Pommes', + ])->save(); $file = File::create([ 'filename' => 'foo.txt', 'uid' => $this->user->id(),