You are here

public function MigrateBlockContentTypeTest::testBlockContentTypeMigration in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentTypeTest.php \Drupal\Tests\block_content\Kernel\Migrate\MigrateBlockContentTypeTest::testBlockContentTypeMigration()
  2. 9 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\Migrate

Code

public function testBlockContentTypeMigration() {

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