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