You are here

public function ElementContext::assertBlockNotExists in Lightning Core 8.2

Same name and namespace in other branches
  1. 8.5 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertBlockNotExists()
  2. 8 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertBlockNotExists()
  3. 8.3 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertBlockNotExists()
  4. 8.4 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertBlockNotExists()

Asserts that a block with a specific plugin ID is not present.

@Then I should not see a :plugin_id block

Parameters

string $plugin_id: The block plugin ID.

File

tests/contexts/ElementContext.behat.inc, line 482

Class

ElementContext
Contains miscellaneous step definitions for working with HTML elements.

Namespace

Acquia\LightningExtension\Context

Code

public function assertBlockNotExists($plugin_id) {
  $this
    ->assertSession()
    ->elementNotExists('css', "[data-block-plugin-id='{$plugin_id}']");
}