You are here

public function BlockStyleBaseTest::testFormAlter in Block Style Plugins 8

Tests the formAlter method.

See also

::formAlter()

File

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

Class

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

Namespace

Drupal\Tests\block_style_plugins\Unit\Plugin

Code

public function testFormAlter() {
  $form = [
    'test',
  ];
  $return = $this->plugin
    ->formAlter($form, $this->formState
    ->reveal());
  $this
    ->assertArrayEquals($form, $return);
}