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