public function AddSchemeFormTest::testAddSchemeOptions in Workbench Access 8
Ensures the add scheme options match what we expect, including derivatives.
File
- tests/
src/ Functional/ AddSchemeFormTest.php, line 58
Class
- AddSchemeFormTest
- Tests for the add scheme form.
Namespace
Drupal\Tests\workbench_access\FunctionalCode
public function testAddSchemeOptions() {
$this
->drupalLogin($this->admin);
$this
->drupalGet('/admin/config/workflow/workbench_access/access_scheme/add');
$expected_options = [
'menu',
'taxonomy',
'workbench_access_test_derived:foo',
'workbench_access_test_derived:bar',
];
foreach ($expected_options as $option) {
$this
->assertSession()
->optionExists('Access scheme', $option);
}
}