function MigrateBlockContentStubTest::testStubSuccess
Same name in other branches
- 9 core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentStubTest.php \Drupal\Tests\block_content\Kernel\Migrate\MigrateBlockContentStubTest::testStubSuccess()
- 8.9.x core/modules/block_content/tests/src/Kernel/Migrate/MigrateBlockContentStubTest.php \Drupal\Tests\block_content\Kernel\Migrate\MigrateBlockContentStubTest::testStubSuccess()
- 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 47
Class
- MigrateBlockContentStubTest
- Test stub creation for block_content entities.
Namespace
Drupal\Tests\block_content\Kernel\MigrateCode
public function testStubSuccess() : void {
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.