3 namespace Drupal\Tests\block_content\Kernel\Migrate;
5 use Drupal\block_content\BlockContentTypeInterface;
6 use Drupal\block_content\Entity\BlockContentType;
7 use Drupal\Tests\migrate_drupal\Kernel\d7\MigrateDrupal7TestBase;
10 * Tests migration of the basic block content type.
12 * @group block_content
14 class MigrateBlockContentTypeTest extends MigrateDrupal7TestBase {
16 public static $modules = ['block', 'block_content', 'filter', 'text'];
21 protected function setUp() {
23 $this->installConfig(['block_content']);
24 $this->installEntitySchema('block_content');
25 $this->executeMigration('block_content_type');
29 * Tests the block content type migration.
31 public function testBlockContentTypeMigration() {
32 /** @var \Drupal\block_content\BlockContentTypeInterface $entity */
33 $entity = BlockContentType::load('basic');
34 $this->assertTrue($entity instanceof BlockContentTypeInterface);
35 $this->assertIdentical('Basic', $entity->label());