You are here

public function MenuSchemeUITest::testSchemeUi in Workbench Access 8

Tests scheme UI.

File

tests/src/Functional/MenuSchemeUITest.php, line 62

Class

MenuSchemeUITest
Defines a class for testing the UI to create and configure schemes.

Namespace

Drupal\Tests\workbench_access\Functional

Code

public function testSchemeUi() {
  $this
    ->assertThatUnprivilegedUsersCannotAccessAdminPages();
  $scheme = $this
    ->assertCreatingAnAccessSchemeAsAdmin('menu');
  $this
    ->assertAdminCanSelectMenus($scheme);
  $this
    ->assertAdminCanAddNodeTypes($scheme);
  $this
    ->assertSectionsOperation($scheme);
}