function ListPluginTest::providerGetDynamicPluginConfig
Provides a list of configs to test.
File
- 
              core/
modules/ ckeditor5/ tests/ src/ Unit/ ListPluginTest.php, line 27  
Class
Namespace
Drupal\Tests\ckeditor5\UnitCode
public static function providerGetDynamicPluginConfig() : array {
  return [
    'startIndex is false' => [
      [
        'properties' => [
          'reversed' => TRUE,
          'startIndex' => FALSE,
          'styles' => TRUE,
        ],
        'multiBlock' => TRUE,
      ],
      [
        'list' => [
          'properties' => [
            'reversed' => TRUE,
            'startIndex' => FALSE,
            'styles' => [
              'useAttribute' => TRUE,
            ],
          ],
          'multiBlock' => TRUE,
        ],
      ],
    ],
    'reversed is false' => [
      [
        'properties' => [
          'reversed' => FALSE,
          'startIndex' => TRUE,
          'styles' => TRUE,
        ],
        'multiBlock' => TRUE,
      ],
      [
        'list' => [
          'properties' => [
            'reversed' => FALSE,
            'startIndex' => TRUE,
            'styles' => [
              'useAttribute' => TRUE,
            ],
          ],
          'multiBlock' => TRUE,
        ],
      ],
    ],
    'styles is false' => [
      [
        'properties' => [
          'reversed' => TRUE,
          'startIndex' => TRUE,
          'styles' => FALSE,
        ],
        'multiBlock' => TRUE,
      ],
      [
        'list' => [
          'properties' => [
            'reversed' => TRUE,
            'startIndex' => TRUE,
            'styles' => FALSE,
          ],
          'multiBlock' => TRUE,
        ],
      ],
    ],
    'all disabled' => [
      [
        'properties' => [
          'reversed' => FALSE,
          'startIndex' => FALSE,
          'styles' => FALSE,
        ],
        'multiBlock' => TRUE,
      ],
      [
        'list' => [
          'properties' => [
            'reversed' => FALSE,
            'startIndex' => FALSE,
            'styles' => FALSE,
          ],
          'multiBlock' => TRUE,
        ],
      ],
    ],
    'all enabled' => [
      [
        'properties' => [
          'reversed' => TRUE,
          'startIndex' => TRUE,
          'styles' => TRUE,
        ],
        'multiBlock' => TRUE,
      ],
      [
        'list' => [
          'properties' => [
            'reversed' => TRUE,
            'startIndex' => TRUE,
            'styles' => [
              'useAttribute' => TRUE,
            ],
          ],
          'multiBlock' => TRUE,
        ],
      ],
    ],
  ];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.