function MigrateBlockContentStubTest::testStubSuccess

Same name in other branches
  1. 8.9.x 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()
  3. 11.x 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');
}

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