You are here

protected function LinkOutputLocationTest::assertNoContextualLinkPlaceholder in Flag 8.4

Asserts that a contextual link placeholder with the given id exists.

Parameters

string $id: A contextual link id.

Return value

bool The result of the assertion.

1 call to LinkOutputLocationTest::assertNoContextualLinkPlaceholder()
LinkOutputLocationTest::testNoLinkLocation in tests/src/Functional/LinkOutputLocationTest.php
Tests that when no display types are selected, no flag links appear.

File

tests/src/Functional/LinkOutputLocationTest.php, line 226

Class

LinkOutputLocationTest
Tests the Flag link is output in various locations.

Namespace

Drupal\Tests\flag\Functional

Code

protected function assertNoContextualLinkPlaceholder($id) {
  return $this
    ->assertSession()
    ->responseNotContains('<div' . new Attribute([
    'data-contextual-id' => $id,
  ]) . '></div>');
}