You are here

public function PermissionsTest::testMenuItemRoleAccessFieldNoPermission in Menu Item Role Access 8

Same name and namespace in other branches
  1. 8.2 tests/src/Functional/PermissionsTest.php \Drupal\Tests\menu_item_role_access\Functional\PermissionsTest::testMenuItemRoleAccessFieldNoPermission()

Assert that a our field to control access does not exist.

File

tests/src/Functional/PermissionsTest.php, line 89

Class

PermissionsTest
Tests handling of menu links hierarchies.

Namespace

Drupal\Tests\menu_item_role_access\Functional

Code

public function testMenuItemRoleAccessFieldNoPermission() {
  $this
    ->getToAddLinkPage($this->noAccessUser);

  // Check our field exists.
  $this
    ->assertSession()
    ->elementNotExists('css', '#edit-menu-item-roles-wrapper');
}