You are here

public function BlockStyleBaseTest::testValidateForm in Block Style Plugins 8

Tests the validateForm method.

See also

::validateForm()

File

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

Class

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

Namespace

Drupal\Tests\block_style_plugins\Unit\Plugin

Code

public function testValidateForm() {
  $form = [
    'third_party_settings' => [
      'block_style_plugins' => [
        $this->plugin
          ->getPluginId() => [],
      ],
    ],
  ];
  $return = $this->plugin
    ->validateForm($form, $this->formState
    ->reveal());
  $this
    ->assertNull($return);
}