You are here

protected function ContextualDynamicContextTest::assertNoContextualLinkPlaceHolder in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/contextual/src/Tests/ContextualDynamicContextTest.php \Drupal\contextual\Tests\ContextualDynamicContextTest::assertNoContextualLinkPlaceHolder()

Asserts that a contextual link placeholder with the given id does not exist.

Parameters

string $id: A contextual link id.

Return value

bool The result of the assertion.

File

core/modules/contextual/src/Tests/ContextualDynamicContextTest.php, line 170
Contains \Drupal\contextual\Tests\ContextualDynamicContextTest.

Class

ContextualDynamicContextTest
Tests if contextual links are showing on the front page depending on permissions.

Namespace

Drupal\contextual\Tests

Code

protected function assertNoContextualLinkPlaceHolder($id) {
  return $this
    ->assertNoRaw('<div' . new Attribute(array(
    'data-contextual-id' => $id,
  )) . '></div>', format_string('Contextual link placeholder with id @id does not exist.', array(
    '@id' => $id,
  )));
}