public function AccessByUserFormTest::testAccessByUserForm in Workbench Access 8
Tests that the correct users are displayed on the access by user form.
File
- tests/
src/ Functional/ AccessByUserFormTest.php, line 45
Class
- AccessByUserFormTest
- Tests for the access by user form.
Namespace
Drupal\Tests\workbench_access\FunctionalCode
public function testAccessByUserForm() {
$node_type = $this
->createContentType([
'type' => 'page',
]);
$vocab = $this
->setUpVocabulary();
$this
->setUpTaxonomyFieldForEntityType('node', $node_type
->id(), $vocab
->id());
$scheme = $this
->setUpTaxonomyScheme($node_type, $vocab);
// Set up some roles and terms for this test.
$staff_term = Term::create([
'vid' => $vocab
->id(),
'name' => 'Staff',
]);
$staff_term
->save();
$section_id = $staff_term
->id();
$this
->doFormTests($scheme, $section_id, 'Staff');
}