public function ElementContext::assertBlockNotExists in Lightning Core 8.5
Same name and namespace in other branches
- 8 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertBlockNotExists()
- 8.2 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertBlockNotExists()
- 8.3 tests/contexts/ElementContext.behat.inc \Acquia\LightningExtension\Context\ElementContext::assertBlockNotExists()
- 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 484
Class
- ElementContext
- Contains miscellaneous step definitions for working with HTML elements.
Namespace
Acquia\LightningExtension\ContextCode
public function assertBlockNotExists($plugin_id) {
$this
->assertSession()
->elementNotExists('css', "[data-block-plugin-id='{$plugin_id}']");
}