function ListPluginTest::providerGetDynamicPluginConfig

Same name in other branches
  1. 9 core/modules/ckeditor5/tests/src/Unit/ListPluginTest.php \Drupal\Tests\ckeditor5\Unit\ListPluginTest::providerGetDynamicPluginConfig()
  2. 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\Unit

Code

public static function providerGetDynamicPluginConfig() : array {
    return [
        'startIndex is false' => [
            [
                'properties' => [
                    'reversed' => TRUE,
                    'startIndex' => FALSE,
                ],
                'multiBlock' => TRUE,
            ],
            [
                'list' => [
                    'properties' => [
                        'reversed' => TRUE,
                        'startIndex' => FALSE,
                        'styles' => FALSE,
                    ],
                    'multiBlock' => TRUE,
                ],
            ],
        ],
        'reversed is false' => [
            [
                'properties' => [
                    'reversed' => FALSE,
                    'startIndex' => TRUE,
                ],
                'multiBlock' => TRUE,
            ],
            [
                'list' => [
                    'properties' => [
                        'reversed' => FALSE,
                        'startIndex' => TRUE,
                        'styles' => FALSE,
                    ],
                    'multiBlock' => TRUE,
                ],
            ],
        ],
        'both disabled' => [
            [
                'properties' => [
                    'reversed' => FALSE,
                    'startIndex' => FALSE,
                ],
                'multiBlock' => TRUE,
            ],
            [
                'list' => [
                    'properties' => [
                        'reversed' => FALSE,
                        'startIndex' => FALSE,
                        'styles' => FALSE,
                    ],
                    'multiBlock' => TRUE,
                ],
            ],
        ],
        'both enabled' => [
            [
                'properties' => [
                    'reversed' => TRUE,
                    'startIndex' => TRUE,
                ],
                'multiBlock' => TRUE,
            ],
            [
                'list' => [
                    'properties' => [
                        'reversed' => TRUE,
                        'startIndex' => TRUE,
                        'styles' => FALSE,
                    ],
                    'multiBlock' => TRUE,
                ],
            ],
        ],
    ];
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.