You are here

public function BlockFormAlterTest::testAllowStylesDerivatives in Block Style Plugins 8.2

Tests the allowStyles method with Derivatives.

See also

::allowStyles()

File

tests/src/Unit/BlockFormAlterTest.php, line 239

Class

BlockFormAlterTest
@coversDefaultClass \Drupal\block_style_plugins\BlockFormAlter @group block_style_plugins

Namespace

Drupal\Tests\block_style_plugins\Unit

Code

public function testAllowStylesDerivatives() {
  $plugin_definition = [
    'exclude' => [
      'system_menu_block:*',
    ],
  ];
  $return = $this->classInstance
    ->allowStyles('system_menu_block:main', $plugin_definition);
  $this
    ->assertFalse($return);
}