You are here

protected function ApiDocsAdminTest::setupMenus in Apigee API Catalog 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/ApiDocsAdminTest.php \Drupal\Tests\apigee_api_catalog\Functional\ApiDocsAdminTest::setupMenus()

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 ApiDocsAdminTest::setupMenus()
ApiDocsAdminTest::setUp in tests/src/Functional/ApiDocsAdminTest.php

File

tests/src/Functional/ApiDocsAdminTest.php, line 58

Class

ApiDocsAdminTest
Simple test to ensure that main page loads with module enabled.

Namespace

Drupal\Tests\apigee_api_catalog\Functional

Code

protected function setupMenus() {
  $this
    ->drupalPlaceBlock('local_actions_block', [
    'region' => 'content',
  ]);
}