You are here

protected function ContextualDynamicContextTest::assertNoContextualLinkPlaceHolder in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/contextual/tests/src/Functional/ContextualDynamicContextTest.php \Drupal\Tests\contextual\Functional\ContextualDynamicContextTest::assertNoContextualLinkPlaceHolder()
  2. 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\Functional

Code

protected function assertNoContextualLinkPlaceHolder(string $id) : void {
  $this
    ->assertSession()
    ->elementNotExists('css', 'div[data-contextual-id="' . $id . '"]');
}