You are here

public function BlockFormAlterTest::testCreate in Block Style Plugins 8.2

Tests the create method.

See also

::create()

File

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

Class

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

Namespace

Drupal\Tests\block_style_plugins\Unit

Code

public function testCreate() {
  $container = $this
    ->prophesize(ContainerInterface::class);
  $container
    ->get('plugin.manager.block_style.processor')
    ->willReturn($this->blockStyleManager
    ->reveal());
  $instance = BlockFormAlter::create($container
    ->reveal());
  $this
    ->assertInstanceOf('Drupal\\block_style_plugins\\BlockFormAlter', $instance);
}