You are here

public function PluginSelectorBaseTest::testBuildSelectorForm in Plugin 8.2

@covers ::buildSelectorForm @covers ::setSelectablePluginType

File

tests/src/Unit/Plugin/Plugin/PluginSelector/PluginSelectorBaseTest.php, line 167

Class

PluginSelectorBaseTest
@coversDefaultClass \Drupal\plugin\Plugin\Plugin\PluginSelector\PluginSelectorBase

Namespace

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

Code

public function testBuildSelectorForm() {
  $this->sut
    ->setSelectablePluginType($this->selectablePluginType);
  $form = [];
  $form_state = new FormState();
  $form = $this->sut
    ->buildSelectorForm($form, $form_state);
  $this
    ->assertIsArray($form);
}