protected function 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

File

drupal/core/modules/contextual/lib/Drupal/contextual/Tests/ContextualDynamicContextTest.php, line 134
Contains \Drupal\contextual\Tests\ContextualDynamicContextTest.

Class

ContextualDynamicContextTest
Tests accessible links after inaccessible links on dynamic context.

Namespace

Drupal\contextual\Tests

Code

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