protected function ParagraphsCoreVersionUiTestTrait::placeDefaultBlocks

Places commonly used blocks in a consistent order.

5 calls to ParagraphsCoreVersionUiTestTrait::placeDefaultBlocks()
ParagraphsAddWidgetTest::setUp in paragraphs/tests/src/FunctionalJavascript/ParagraphsAddWidgetTest.php
ParagraphsClientsideButtonsTest::setUp in paragraphs/tests/src/FunctionalJavascript/ParagraphsClientsideButtonsTest.php
ParagraphsDemoTest::setUp in paragraphs/modules/paragraphs_demo/tests/src/Functional/ParagraphsDemoTest.php
ParagraphsLibraryItemTranslationTest::setUp in paragraphs/modules/paragraphs_library/tests/src/Functional/ParagraphsLibraryItemTranslationTest.php
ParagraphsStableEditPerspectivesUiTest::setUp in paragraphs/tests/src/FunctionalJavascript/ParagraphsStableEditPerspectivesUiTest.php
1 method overrides ParagraphsCoreVersionUiTestTrait::placeDefaultBlocks()
ParagraphsClientsideButtonsClaroTest::placeDefaultBlocks in paragraphs/tests/src/FunctionalJavascript/ParagraphsClientsideButtonsClaroTest.php
Places commonly used blocks in a consistent order.

File

paragraphs/tests/src/Traits/ParagraphsCoreVersionUiTestTrait.php, line 13

Class

ParagraphsCoreVersionUiTestTrait
Provides helper methods for Drupal 8.3.x and 8.4.x versions.

Namespace

Drupal\Tests\paragraphs\Traits

Code

protected function placeDefaultBlocks() {

  // Place the system main block explicitly and first to have a consistent
  // block order before and after Drupal 9.4
  $this
    ->drupalPlaceBlock('system_main_block', [
    'weight' => -1,
    'region' => 'content',
  ]);

  // Place the breadcrumb, tested in fieldUIAddNewField().
  $this
    ->drupalPlaceBlock('system_breadcrumb_block', [
    'region' => 'content',
  ]);
  $this
    ->drupalPlaceBlock('local_tasks_block', [
    'region' => 'content',
  ]);
  $this
    ->drupalPlaceBlock('local_actions_block', [
    'region' => 'content',
  ]);
  $this
    ->drupalPlaceBlock('page_title_block', [
    'region' => 'content',
  ]);
}