public function CKEditor4to5UpgradeCompletenessTest::testButtonsWithTestOnlyModule in Drupal 10
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 \Drupal\ckeditor5\Plugin\CKEditor4To5Upgrade\Core @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();
}