protected function WorkbenchAccessTestTrait::loadUnchangedScheme in Workbench Access 8
Loads the given scheme.
Parameters
string $scheme_id: Scheme ID.
Return value
\Drupal\workbench_access\Entity\AccessSchemeInterface Unchanged scheme.
7 calls to WorkbenchAccessTestTrait::loadUnchangedScheme()
- ConfigDependenciesTest::testSchemeDependencies in tests/
src/ Kernel/ ConfigDependenciesTest.php - Tests scheme dependencies.
- MenuSchemeUITest::assertAdminCanAddNodeTypes in tests/
src/ Functional/ MenuSchemeUITest.php - Assert admin can add node types.
- MenuSchemeUITest::assertAdminCanSelectMenus in tests/
src/ Functional/ MenuSchemeUITest.php - Assert admin can select menus.
- TaxonomySchemeUITest::assertAdminCanAddEntityTestAccessControlledBundleToScheme in tests/
src/ Functional/ TaxonomySchemeUITest.php - Assert admin can add entity test bundle that has taxonomy field.
- TaxonomySchemeUITest::assertAdminCanAddPageNodeTypeToScheme in tests/
src/ Functional/ TaxonomySchemeUITest.php - Assert admin can add node type that has taxonomy field.
File
- tests/
src/ Traits/ WorkbenchAccessTestTrait.php, line 258
Class
- WorkbenchAccessTestTrait
- Contains helper classes for tests to set up various configuration.
Namespace
Drupal\Tests\workbench_access\TraitsCode
protected function loadUnchangedScheme($scheme_id) {
return $this->container
->get('entity_type.manager')
->getStorage('access_scheme')
->loadUnchanged($scheme_id);
}