protected function TaxonomySchemeUITest::assertAdminCannotAddRecursiveTaxonomy in Workbench Access 8
Assert admin cannot add a field that references its own vocabulary.
Parameters
\Drupal\workbench_access\Entity\AccessSchemeInterface $scheme: Access scheme.
1 call to TaxonomySchemeUITest::assertAdminCannotAddRecursiveTaxonomy()
- TaxonomySchemeUITest::testSchemeUi in tests/
src/ Functional/ TaxonomySchemeUITest.php - Tests scheme UI.
File
- tests/
src/ Functional/ TaxonomySchemeUITest.php, line 183
Class
- TaxonomySchemeUITest
- Defines a class for testing the UI to create and configure schemes.
Namespace
Drupal\Tests\workbench_access\FunctionalCode
protected function assertAdminCannotAddRecursiveTaxonomy(AccessSchemeInterface $scheme) {
$this
->drupalGet($scheme
->toUrl('edit-form'));
$this
->assertSession()
->pageTextContains('Allowed Field');
$this
->assertSession()
->pageTextNotContains('Recursive Field');
$this
->assertSession()
->pageTextNotContains('Term Parents');
}