You are here

protected function ApiDocsAccessTest::setupMenus in Apigee API Catalog 8

Set up menus and tasks in their regions.

Since menus and tasks are now blocks, we're required to explicitly set them to regions.

1 call to ApiDocsAccessTest::setupMenus()
ApiDocsAccessTest::setUp in tests/src/Functional/ApiDocsAccessTest.php

File

tests/src/Functional/ApiDocsAccessTest.php, line 90

Class

ApiDocsAccessTest
Tests the ApiDoc term access permissions.

Namespace

Drupal\Tests\apigee_api_catalog\Functional

Code

protected function setupMenus() {
  $this
    ->drupalPlaceBlock('system_menu_block:tools', [
    'region' => 'primary_menu',
  ]);
  $this
    ->drupalPlaceBlock('local_tasks_block', [
    'region' => 'secondary_menu',
  ]);
  $this
    ->drupalPlaceBlock('local_actions_block', [
    'region' => 'content',
  ]);
  $this
    ->drupalPlaceBlock('page_title_block', [
    'region' => 'content',
  ]);
}