protected function MenuSchemeUITest::assertSectionsOperation in Workbench Access 8
Asserts there is an operations link for sections in a scheme.
Parameters
\Drupal\workbench_access\Entity\AccessSchemeInterface $scheme: The scheme.
1 call to MenuSchemeUITest::assertSectionsOperation()
- MenuSchemeUITest::testSchemeUi in tests/
src/ Functional/ MenuSchemeUITest.php - Tests scheme UI.
File
- tests/
src/ Functional/ MenuSchemeUITest.php, line 108
Class
- MenuSchemeUITest
- Defines a class for testing the UI to create and configure schemes.
Namespace
Drupal\Tests\workbench_access\FunctionalCode
protected function assertSectionsOperation(AccessSchemeInterface $scheme) {
$this
->drupalGet(Url::fromRoute('entity.access_scheme.collection'));
$assert = $this
->assertSession();
$assert
->linkExists('Sections');
$assert
->linkByHrefExists($scheme
->toUrl('sections')
->toString());
}