You are here

public function SectionFormAlterTest::testCreate in Block Style Plugins 8.2

Tests the create method.

See also

::create()

File

tests/src/Unit/SectionFormAlterTest.php, line 113

Class

SectionFormAlterTest
@coversDefaultClass \Drupal\block_style_plugins\SectionFormAlter @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 = SectionFormAlter::create($container
    ->reveal());
  $this
    ->assertInstanceOf('Drupal\\block_style_plugins\\SectionFormAlter', $instance);
}