function ListPluginTest::providerGetDynamicPluginConfig
Same name in other branches
- 10 core/modules/ckeditor5/tests/src/Unit/ListPluginTest.php \Drupal\Tests\ckeditor5\Unit\ListPluginTest::providerGetDynamicPluginConfig()
- 11.x core/modules/ckeditor5/tests/src/Unit/ListPluginTest.php \Drupal\Tests\ckeditor5\Unit\ListPluginTest::providerGetDynamicPluginConfig()
Provides a list of configs to test.
File
-
core/
modules/ ckeditor5/ tests/ src/ Unit/ ListPluginTest.php, line 22
Class
- ListPluginTest
- @coversDefaultClass \Drupal\ckeditor5\Plugin\CKEditor5Plugin\ListPlugin @group ckeditor5 @internal
Namespace
Drupal\Tests\ckeditor5\UnitCode
public function providerGetDynamicPluginConfig() : array {
return [
'startIndex is false' => [
[
'reversed' => TRUE,
'startIndex' => FALSE,
],
[
'list' => [
'properties' => [
'reversed' => TRUE,
'startIndex' => FALSE,
'styles' => FALSE,
],
],
],
],
'reversed is false' => [
[
'reversed' => FALSE,
'startIndex' => TRUE,
],
[
'list' => [
'properties' => [
'reversed' => FALSE,
'startIndex' => TRUE,
'styles' => FALSE,
],
],
],
],
'both disabled' => [
[
'reversed' => FALSE,
'startIndex' => FALSE,
],
[
'list' => [
'properties' => [
'reversed' => FALSE,
'startIndex' => FALSE,
'styles' => FALSE,
],
],
],
],
'both enabled' => [
[
'reversed' => TRUE,
'startIndex' => TRUE,
],
[
'list' => [
'properties' => [
'reversed' => TRUE,
'startIndex' => TRUE,
'styles' => FALSE,
],
],
],
],
];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.