You are here

public function BlockStyleBaseTest::testSubmitForm in Block Style Plugins 8

Tests the submitForm method.

See also

::submitForm()

File

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

Class

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

Namespace

Drupal\Tests\block_style_plugins\Unit\Plugin

Code

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