public function BlockStyleBaseTest::includeOnlyProvider in Block Style Plugins 8
Provider for testIncludeOnly()
File
- tests/
src/ Unit/ Plugin/ BlockStyleBaseTest.php, line 415
Class
- BlockStyleBaseTest
- @coversDefaultClass \Drupal\block_style_plugins\Plugin\BlockStyleBase @group block_style_plugins
Namespace
Drupal\Tests\block_style_plugins\Unit\PluginCode
public function includeOnlyProvider() {
return [
'No include options are passed' => [
NULL,
NULL,
TRUE,
],
'Include basic_block' => [
'basic_block',
NULL,
TRUE,
],
'Include only a sample_block' => [
'wrong_block',
NULL,
FALSE,
],
'Include a custom content block' => [
'custom_block',
'custom_block',
TRUE,
],
'Include a custom content block which is not the current one' => [
'wrong_custom_block',
'custom_block',
FALSE,
],
'Include all derivatives of a base_plugin_id' => [
'basic_block:*',
NULL,
TRUE,
],
];
}