protected function ModerationStateBlockTest::setUp in Workbench Moderation 8
Sets the test up.
Overrides ModerationStateTestBase::setUp
File
- tests/
src/ Functional/ ModerationStateBlockTest.php, line 18
Class
- ModerationStateBlockTest
- Tests general content moderation workflow for blocks.
Namespace
Drupal\Tests\workbench_moderation\FunctionalCode
protected function setUp() {
parent::setUp();
// Create the "basic" block type.
$bundle = BlockContentType::create([
'id' => 'basic',
'label' => 'basic',
'revision' => FALSE,
]);
$bundle
->save();
// Add the body field to it.
block_content_add_body_field($bundle
->id());
}