protected function MigrateBundleTest::setUp in Drupal 8
Same name and namespace in other branches
- 9 core/modules/migrate/tests/src/Kernel/MigrateBundleTest.php \Drupal\Tests\migrate\Kernel\MigrateBundleTest::setUp()
Overrides MigrateTestBase::setUp
File
- core/
modules/ migrate/ tests/ src/ Kernel/ MigrateBundleTest.php, line 26
Class
- MigrateBundleTest
- Tests setting of bundles on content entity migrations.
Namespace
Drupal\Tests\migrate\KernelCode
protected function setUp() {
parent::setUp();
$this
->installEntitySchema('user');
$this
->installEntitySchema('taxonomy_vocabulary');
$this
->installEntitySchema('taxonomy_term');
$this
->installConfig([
'taxonomy',
]);
// Set up two vocabularies (taxonomy bundles).
Vocabulary::create([
'vid' => 'tags',
'name' => 'Tags',
]);
Vocabulary::create([
'vid' => 'categories',
'name' => 'Categories',
]);
}