protected function TaxonomySchemeUITest::assertAdminCannotAddArticleNodeTypeToScheme in Workbench Access 8
Assert admin cannot add node type that has no taxonomy field.
Parameters
\Drupal\workbench_access\Entity\AccessSchemeInterface $scheme: Access scheme.
1 call to TaxonomySchemeUITest::assertAdminCannotAddArticleNodeTypeToScheme()
- TaxonomySchemeUITest::testSchemeUi in tests/
src/ Functional/ TaxonomySchemeUITest.php - Tests scheme UI.
File
- tests/
src/ Functional/ TaxonomySchemeUITest.php, line 125
Class
- TaxonomySchemeUITest
- Defines a class for testing the UI to create and configure schemes.
Namespace
Drupal\Tests\workbench_access\FunctionalCode
protected function assertAdminCannotAddArticleNodeTypeToScheme(AccessSchemeInterface $scheme) {
$this
->drupalGet($scheme
->toUrl('edit-form'));
$this
->assertSession()
->fieldNotExists('scheme_settings[fields][node:article:field_workbench_access]');
$this
->assertFalse($scheme
->getAccessScheme()
->applies('node', 'article'));
}