MigrateEckBundleTest.php in Entity Construction Kit (ECK) 8
File
tests/src/Kernel/Migrate/d7/MigrateEckBundleTest.php
View source
<?php
namespace Drupal\Tests\eck\Kernel\Migrate\d7;
class MigrateEckBundleTest extends MigrateEckTestBase {
public static $modules = [
'eck',
'node',
];
protected function setUp() {
parent::setUp();
$this
->executeMigrations([
'd7_eck_type',
'd7_eck_bundle',
]);
}
public function testEckBundle() {
$bundle = [
'type' => 'simple_entity',
'name' => 'Simple entity',
'description' => 'Simple entity',
'langcode' => 'en',
];
$this
->assertEckBundle($bundle);
$bundle = [
'type' => 'complex_entity',
'name' => 'Complex entity',
'description' => 'Complex entity',
'langcode' => 'en',
];
$this
->assertEckBundle($bundle);
$bundle = [
'type' => 'another_bundle',
'name' => 'Another bundle',
'description' => 'Another bundle',
'langcode' => 'en',
];
$this
->assertEckBundle($bundle);
}
}