You are here

public function MigrateBlockContentStubTest::testStubSuccess in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentStubTest.php \Drupal\Tests\block_content\Kernel\Migrate\MigrateBlockContentStubTest::testStubSuccess()
  2. 10 core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentStubTest.php \Drupal\Tests\block_content\Kernel\Migrate\MigrateBlockContentStubTest::testStubSuccess()

Tests creation of block content stubs when there is a block_content_type.

File

core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentStubTest.php, line 45

Class

MigrateBlockContentStubTest
Test stub creation for block_content entities.

Namespace

Drupal\Tests\block_content\Kernel\Migrate

Code

public function testStubSuccess() {
  BlockContentType::create([
    'id' => 'test_block_content_type',
    'label' => 'Test block content type',
  ])
    ->save();
  $this
    ->performStubTest('block_content');
}