You are here

public function AdvancedPluginSelectorBaseTest::testBuildConfigurationForm in Plugin 8.2

@covers ::buildConfigurationForm

File

tests/src/Unit/Plugin/Plugin/PluginSelector/AdvancedPluginSelectorBaseTest.php, line 685

Class

AdvancedPluginSelectorBaseTest
@coversDefaultClass \Drupal\plugin\Plugin\Plugin\PluginSelector\AdvancedPluginSelectorBase

Namespace

Drupal\Tests\plugin\Unit\Plugin\Plugin\PluginSelector

Code

public function testBuildConfigurationForm() {
  $form = [
    'plugin' => [],
  ];
  $form_state = new FormState();
  $configuration_form = $form['plugin'];
  $configuration_form_state = SubformState::createForSubform($configuration_form, $form, $form_state);
  $this
    ->assertIsArray($this->sut
    ->buildConfigurationForm($configuration_form, $configuration_form_state));
}