protected function ContextualDynamicContextTest::assertContextualLinkPlaceHolder in Drupal 10
Same name and namespace in other branches
- 8 core/modules/contextual/tests/src/Functional/ContextualDynamicContextTest.php \Drupal\Tests\contextual\Functional\ContextualDynamicContextTest::assertContextualLinkPlaceHolder()
- 9 core/modules/contextual/tests/src/Functional/ContextualDynamicContextTest.php \Drupal\Tests\contextual\Functional\ContextualDynamicContextTest::assertContextualLinkPlaceHolder()
Asserts that a contextual link placeholder with the given id exists.
@internal
Parameters
string $id: A contextual link id.
File
- core/
modules/ contextual/ tests/ src/ Functional/ ContextualDynamicContextTest.php, line 228
Class
- ContextualDynamicContextTest
- Tests if contextual links are showing on the front page depending on permissions.
Namespace
Drupal\Tests\contextual\FunctionalCode
protected function assertContextualLinkPlaceHolder(string $id) : void {
$this
->assertSession()
->elementAttributeContains('css', 'div[data-contextual-id="' . $id . '"]', 'data-contextual-token', $this
->createContextualIdToken($id));
}