protected function FixedToContentMappingTest::setUp in Fixed Block Content 8
Overrides FixedBlockContentKernelTestBase::setUp
File
- tests/
src/ Kernel/ FixedToContentMappingTest.php, line 29
Class
- FixedToContentMappingTest
- Tests the fixed block content mapping handler.
Namespace
Drupal\Tests\fixed_block_content\KernelCode
protected function setUp() {
parent::setUp();
$this->mappingHandler = $this->entityTypeManager
->getHandler('fixed_block_content', 'mapping_handler');
// Create a simple block content to work with it.
$this->blockContent = $this->entityTypeManager
->getStorage('block_content')
->create([
'type' => 'basic',
'info' => 'Basic block',
]);
}