You are here

public function MigrateBlockContentStubTest::testStubSuccess in Zircon Profile 8

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

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

File

core/modules/block_content/src/Tests/Migrate/MigrateBlockContentStubTest.php, line 55
Contains \Drupal\block_content\Tests\Migrate\MigrateBlockContentStubTest.

Class

MigrateBlockContentStubTest
Test stub creation for block_content entities.

Namespace

Drupal\block_content\Tests\Migrate

Code

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