public function MigrateBlockContentTypeTest::testBlockContentTypeMigration in Drupal 9
Same name and namespace in other branches
- 8 core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentTypeTest.php \Drupal\Tests\block_content\Kernel\Migrate\MigrateBlockContentTypeTest::testBlockContentTypeMigration()
Tests the block content type migration.
File
- core/
modules/ block_content/ tests/ src/ Kernel/ Migrate/ MigrateBlockContentTypeTest.php, line 31
Class
- MigrateBlockContentTypeTest
- Tests migration of the basic block content type.
Namespace
Drupal\Tests\block_content\Kernel\MigrateCode
public function testBlockContentTypeMigration() {
/** @var \Drupal\block_content\BlockContentTypeInterface $entity */
$entity = BlockContentType::load('basic');
$this
->assertInstanceOf(BlockContentTypeInterface::class, $entity);
$this
->assertSame('Basic', $entity
->label());
}