function CKEditor4to5UpgradeCompletenessTest::testButtonsWithTestOnlyModule
Tests that the test-only CKEditor 4 module does not have an upgrade path.
File
-
core/
modules/ ckeditor5/ tests/ src/ Kernel/ CKEditor4to5UpgradeCompletenessTest.php, line 122
Class
- CKEditor4to5UpgradeCompletenessTest
- @covers <a href="/api/drupal/core%21modules%21ckeditor5%21src%21Plugin%21CKEditor4To5Upgrade%21Core.php/class/Core/9" title="Provides the CKEditor 4 to 5 upgrade for Drupal core's CKEditor plugins." class="local">\Drupal\ckeditor5\Plugin\CKEditor4To5Upgrade\Core</a> @group ckeditor5 @internal
Namespace
Drupal\Tests\ckeditor5\KernelCode
public function testButtonsWithTestOnlyModule() : void {
$this->enableModules([
'ckeditor_test',
]);
$this->cke4PluginManager = $this->container
->get('plugin.manager.ckeditor.plugin');
$this->expectException(\OutOfBoundsException::class);
$this->expectExceptionMessage('No upgrade path found for the "LlamaCSS" button.');
$this->testButtons();
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.