X-Git-Url: http://aleph1.co.uk/gitweb/?a=blobdiff_plain;f=web%2Fcore%2Fmodules%2Fmigrate%2Ftests%2Fsrc%2FKernel%2FMigrateBundleTest.php;h=b6c3051330679d3ae20ed4576eb6d7b37d5d11e0;hb=refs%2Fheads%2Fd864;hp=74632959611080271adfe2ecc7cc78ec842125b9;hpb=a2bd1bf0c2c1f1a17d188f4dc0726a45494cefae;p=yaffs-website diff --git a/web/core/modules/migrate/tests/src/Kernel/MigrateBundleTest.php b/web/core/modules/migrate/tests/src/Kernel/MigrateBundleTest.php index 746329596..b6c305133 100644 --- a/web/core/modules/migrate/tests/src/Kernel/MigrateBundleTest.php +++ b/web/core/modules/migrate/tests/src/Kernel/MigrateBundleTest.php @@ -18,13 +18,14 @@ class MigrateBundleTest extends MigrateTestBase { * * @var array */ - public static $modules = ['taxonomy', 'text']; + public static $modules = ['taxonomy', 'text', 'user']; /** * {@inheritdoc} */ protected function setUp() { parent::setUp(); + $this->installEntitySchema('user'); $this->installEntitySchema('taxonomy_vocabulary'); $this->installEntitySchema('taxonomy_term'); $this->installConfig(['taxonomy']); @@ -65,7 +66,7 @@ class MigrateBundleTest extends MigrateTestBase { // Import and validate the term entity was created with the correct bundle. $term_executable = new MigrateExecutable($term_migration, $this); $term_executable->import(); - /** @var Term $term */ + /** @var \Drupal\taxonomy\Entity\Term $term */ $term = Term::load(1); $this->assertEquals($term->bundle(), 'categories'); } @@ -103,7 +104,7 @@ class MigrateBundleTest extends MigrateTestBase { // Import and validate the term entities were created with the correct bundle. $term_executable = new MigrateExecutable($term_migration, $this); $term_executable->import(); - /** @var Term $term */ + /** @var \Drupal\taxonomy\Entity\Term $term */ $term = Term::load(1); $this->assertEquals($term->bundle(), 'categories'); $term = Term::load(2); @@ -145,7 +146,7 @@ class MigrateBundleTest extends MigrateTestBase { // Import and validate the term entities were created with the correct bundle. $term_executable = new MigrateExecutable($term_migration, $this); $term_executable->import(); - /** @var Term $term */ + /** @var \Drupal\taxonomy\Entity\Term $term */ $term = Term::load(1); $this->assertEquals($term->bundle(), 'categories'); $term = Term::load(2);