function MigrateBlockContentTypeTest::testBlockContentTypeMigration

Tests the block content type migration.

File

core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentTypeTest.php, line 36

Class

MigrateBlockContentTypeTest
Tests migration of the basic block content type.

Namespace

Drupal\Tests\block_content\Kernel\Migrate

Code

public function testBlockContentTypeMigration() : void {
  /** @var \Drupal\block_content\BlockContentTypeInterface $entity */
  $entity = BlockContentType::load('basic');
  $this->assertInstanceOf(BlockContentTypeInterface::class, $entity);
  $this->assertSame('Basic', $entity->label());
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.