function MediaTest::assertContextMenuItemNotExists
Asserts that a context menu item does not exist by aria-label attribute.
@internal
Parameters
string $label: The `aria-label` attribute value of the context menu item.
1 call to MediaTest::assertContextMenuItemNotExists()
- MediaTest::testLinkability in core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ MediaTest.php - Tests linkability of the CKEditor widget.
File
-
core/
modules/ ckeditor/ tests/ src/ FunctionalJavascript/ MediaTest.php, line 1553
Class
- MediaTest
- @coversDefaultClass \Drupal\ckeditor\Plugin\CKEditorPlugin\DrupalMedia @group ckeditor @group legacy
Namespace
Drupal\Tests\ckeditor\FunctionalJavascriptCode
protected function assertContextMenuItemNotExists(string $label) : void {
$this->assertSession()
->elementNotExists('xpath', '//a[@aria-label="' . $label . '"]');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.