You are here

public function TaxonomySchemeUITest::testSchemeUi in Workbench Access 8

Tests scheme UI.

File

tests/src/Functional/TaxonomySchemeUITest.php, line 77

Class

TaxonomySchemeUITest
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();
  $this
    ->assertAdminCanSelectVocabularies($scheme);
  $this
    ->assertAdminCanAddPageNodeTypeToScheme($scheme);
  $this
    ->assertAdminCannotAddArticleNodeTypeToScheme($scheme);
  $this
    ->assertAdminCanAddEntityTestAccessControlledBundleToScheme($scheme);
  $this
    ->assertAdminCannotAddEntityTestAccessAccessControlledBundleToScheme($scheme);
  $this
    ->assertAdminCannotAddUnselectedVocabulary($scheme);
  $this
    ->assertAdminCannotAddRecursiveTaxonomy($scheme);
}