You are here

public function BlockStyleBaseTest::excludeProvider in Block Style Plugins 8

Provider for testExclude()

File

tests/src/Unit/Plugin/BlockStyleBaseTest.php, line 364

Class

BlockStyleBaseTest
@coversDefaultClass \Drupal\block_style_plugins\Plugin\BlockStyleBase @group block_style_plugins

Namespace

Drupal\Tests\block_style_plugins\Unit\Plugin

Code

public function excludeProvider() {
  return [
    'No exclude options are passed' => [
      FALSE,
      NULL,
      FALSE,
    ],
    'Exclude basic_block' => [
      'basic_block',
      NULL,
      TRUE,
    ],
    'Exclude a block that is not the current one' => [
      'wrong_block',
      NULL,
      FALSE,
    ],
    'Exclude a custom content block' => [
      'custom_block',
      'custom_block',
      TRUE,
    ],
    'Exclude a custom content block that is not the current block' => [
      'wrong_custom_block',
      'custom_block',
      FALSE,
    ],
    'Exclude all derivatives of a base_plugin_id' => [
      'basic_block:*',
      NULL,
      TRUE,
    ],
  ];
}