protected function FixedBlockContentKernelTestBase::createFixedBlock in Fixed Block Content 8
Creates the basic custom block type.
1 call to FixedBlockContentKernelTestBase::createFixedBlock()
- FixedBlockContentKernelTestBase::setUp in tests/
src/ Kernel/ FixedBlockContentKernelTestBase.php
File
- tests/
src/ Kernel/ FixedBlockContentKernelTestBase.php, line 96
Class
- FixedBlockContentKernelTestBase
- Basic setup for fixed block content kernel tests.
Namespace
Drupal\Tests\fixed_block_content\KernelCode
protected function createFixedBlock() {
// Create a fixed content block.
$this->fixedBlock = $this->entityTypeManager
->getStorage('fixed_block_content')
->create([
'id' => 'basic_fixed',
'title' => 'Basic fixed',
'block_content_bundle' => 'basic',
]);
$this->fixedBlock
->save();
}