function MenuAccessTest::drupalGet

Same name in other branches
  1. 11.x core/modules/system/tests/src/Functional/Menu/MenuAccessTest.php \Drupal\Tests\system\Functional\Menu\MenuAccessTest::drupalGet()

Overrides UiHelperTrait::drupalGet

3 calls to MenuAccessTest::drupalGet()
MenuAccessTest::assertMenuItemRoutesAccess in core/modules/system/tests/src/Functional/Menu/MenuAccessTest.php
Asserts route requests connected to menu items have the expected access.
MenuAccessTest::assertUserRoutesAccess in core/modules/system/tests/src/Functional/Menu/MenuAccessTest.php
Asserts which routes a user has access to.
MenuAccessTest::testMenuBlockLinksAccessCheck in core/modules/system/tests/src/Functional/Menu/MenuAccessTest.php
Tests menu link for route with access check.

File

core/modules/system/tests/src/Functional/Menu/MenuAccessTest.php, line 370

Class

MenuAccessTest
Tests the route access checks on menu links.

Namespace

Drupal\Tests\system\Functional\Menu

Code

protected function drupalGet($path, array $options = [], array $headers = []) {
    $return = parent::drupalGet($path, $options, $headers);
    $this->assertSession()
        ->pageTextNotContains('You do not have any administrative items.');
    return $return;
}

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