protected function ContextualDynamicContextTest::assertNoContextualLinkPlaceHolder in Drupal 8
Same name and namespace in other branches
- 9 core/modules/contextual/tests/src/Functional/ContextualDynamicContextTest.php \Drupal\Tests\contextual\Functional\ContextualDynamicContextTest::assertNoContextualLinkPlaceHolder()
- 10 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.
Parameters
string $id: A contextual link id.
1 call to ContextualDynamicContextTest::assertNoContextualLinkPlaceHolder()
- ContextualDynamicContextTest::testDifferentPermissions in core/
modules/ contextual/ tests/ src/ Functional/ ContextualDynamicContextTest.php - Tests contextual links with different permissions.
File
- core/
modules/ contextual/ tests/ src/ Functional/ ContextualDynamicContextTest.php, line 241
Class
- ContextualDynamicContextTest
- Tests if contextual links are showing on the front page depending on permissions.
Namespace
Drupal\Tests\contextual\FunctionalCode
protected function assertNoContextualLinkPlaceHolder($id) {
$this
->assertSession()
->elementNotExists('css', 'div[data-contextual-id="' . $id . '"]');
}