You are here

public function PermissionsTest::testMenuItemRoleAccessFieldExists in Menu Item Role Access 8.2

Same name and namespace in other branches
  1. 8 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 85

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');
}