You are here

protected function ModerationStateBlockTest::setUp in Workbench Moderation 8.2

Sets the test up.

Overrides ModerationStateTestBase::setUp

File

src/Tests/ModerationStateBlockTest.php, line 18

Class

ModerationStateBlockTest
Tests general content moderation workflow for blocks.

Namespace

Drupal\workbench_moderation\Tests

Code

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());
}