function StylePluginTest::testGetDynamicPluginConfig
Same name and namespace in other branches
- 11.x core/modules/ckeditor5/tests/src/Unit/StylePluginTest.php \Drupal\Tests\ckeditor5\Unit\StylePluginTest::testGetDynamicPluginConfig()
- 10 core/modules/ckeditor5/tests/src/Unit/StylePluginTest.php \Drupal\Tests\ckeditor5\Unit\StylePluginTest::testGetDynamicPluginConfig()
- 9 core/modules/ckeditor5/tests/src/Unit/StylePluginTest.php \Drupal\Tests\ckeditor5\Unit\StylePluginTest::testGetDynamicPluginConfig()
Tests get dynamic plugin config.
Attributes
#[DataProvider('providerGetDynamicPluginConfig')]
File
-
core/
modules/ ckeditor5/ tests/ src/ Unit/ StylePluginTest.php, line 86
Class
Namespace
Drupal\Tests\ckeditor5\UnitCode
public function testGetDynamicPluginConfig(array $configuration, array $expected_dynamic_config) : void {
$plugin = new Style($configuration, 'ckeditor5_style', NULL);
$dynamic_plugin_config = $plugin->getDynamicPluginConfig([], $this->prophesize(EditorInterface::class)
->reveal());
$this->assertSame($expected_dynamic_config, $dynamic_plugin_config);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.