function CKEditor5TestTrait::assertEditorButtonEnabled
Same name in other branches
- 10 core/modules/ckeditor5/tests/src/Traits/CKEditor5TestTrait.php \Drupal\Tests\ckeditor5\Traits\CKEditor5TestTrait::assertEditorButtonEnabled()
- 11.x core/modules/ckeditor5/tests/src/Traits/CKEditor5TestTrait.php \Drupal\Tests\ckeditor5\Traits\CKEditor5TestTrait::assertEditorButtonEnabled()
Asserts a CKEditor button is enabled.
Parameters
string $name: The name of the button, such as `drupallink`, `source`, etc.
3 calls to CKEditor5TestTrait::assertEditorButtonEnabled()
- ImageTestBase::testLinkability in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ ImageTestBase.php - Tests linkability of the image CKEditor widget.
- MediaLibraryTest::testButton in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ MediaLibraryTest.php - Tests using drupalMedia button to embed media into CKEditor 5.
- MediaTest::testLinkability in core/
modules/ ckeditor5/ tests/ src/ FunctionalJavascript/ MediaTest.php - Tests linkability of the media CKEditor widget.
File
-
core/
modules/ ckeditor5/ tests/ src/ Traits/ CKEditor5TestTrait.php, line 98
Class
- CKEditor5TestTrait
- Provides methods to test CKEditor 5.
Namespace
Drupal\Tests\ckeditor5\TraitsCode
protected function assertEditorButtonEnabled($name) {
$button = $this->getEditorButton($name);
$this->assertFalse($button->hasAttribute('aria-disabled'));
$this->assertFalse($button->hasClass('ck-disabled'));
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.