function StylePluginTest::testGetDynamicPluginConfig

Tests get dynamic plugin config.

@legacy-covers ::getDynamicPluginConfig

Attributes

#[DataProvider('providerGetDynamicPluginConfig')]

File

core/modules/ckeditor5/tests/src/Unit/StylePluginTest.php, line 88

Class

StylePluginTest
Tests Drupal\ckeditor5\Plugin\CKEditor5Plugin\Style.

Namespace

Drupal\Tests\ckeditor5\Unit

Code

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.