function 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\MigrateCode
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.