You are here

public function BlockFormAlterTest::testAllowStylesInlineBlocks in Block Style Plugins 8.2

Tests the allowStyles method with Layout Builder's Inline Blocks.

See also

::allowStyles()

File

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

Class

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

Namespace

Drupal\Tests\block_style_plugins\Unit

Code

public function testAllowStylesInlineBlocks() {
  $plugin_definition = [
    'exclude' => [
      'block_type',
    ],
  ];
  $return = $this->classInstance
    ->allowStyles('inline_block:block_type', $plugin_definition);
  $this
    ->assertFalse($return);
}