function BlockContentThemeSuggestionsTest::setUp

Sets the test up.

Overrides BlockContentTestBase::setUp

File

core/modules/block_content/tests/src/Functional/BlockContentThemeSuggestionsTest.php, line 44

Class

BlockContentThemeSuggestionsTest
Tests block content theme suggestions.

Namespace

Drupal\Tests\block_content\Functional

Code

protected function setUp() : void {
  parent::setUp();
  // Create a block with a known UUID.
  $block = $this->createBlockContent('Example block!', 'basic', FALSE);
  $block->set('uuid', $this->uuid);
  $block->save();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.