public function BlockFormAlterTest::allowStylesProvider in Block Style Plugins 8.2
Provider for testAllowStyles()
File
- tests/
src/ Unit/ BlockFormAlterTest.php, line 209
Class
- BlockFormAlterTest
- @coversDefaultClass \Drupal\block_style_plugins\BlockFormAlter @group block_style_plugins
Namespace
Drupal\Tests\block_style_plugins\UnitCode
public function allowStylesProvider() {
return [
'No include options are passed' => [
NULL,
NULL,
TRUE,
],
'Include basic_block' => [
'include',
'basic_block',
TRUE,
],
'Include only a sample_block' => [
'include',
'wrong_block',
FALSE,
],
'Include all derivatives of a base_plugin_id' => [
'include',
'basic_block:*',
TRUE,
],
'No exclude options are passed' => [
NULL,
NULL,
TRUE,
],
'Exclude basic_block' => [
'exclude',
'basic_block',
FALSE,
],
'Exclude a block that is not the current one' => [
'exclude',
'wrong_block',
TRUE,
],
'Exclude all derivatives of a base_plugin_id' => [
'exclude',
'basic_block:*',
FALSE,
],
];
}