You are here

public function PermissionsTest::testMenuItemRoleAccessFieldExists 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::testMenuItemRoleAccessFieldExists()

Assert that a our field to control access exists.

File

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

Class

PermissionsTest
Tests handling of menu links hierarchies.

Namespace

Drupal\Tests\menu_item_role_access\Functional

Code

public function testMenuItemRoleAccessFieldExists() {
  $this
    ->getToAddLinkPage($this->adminUser);

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