You are here

public function AdvancedPluginSelectorBaseTest::testRebuildForm in Plugin 8.2

@covers ::rebuildForm

File

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

Class

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

Namespace

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

Code

public function testRebuildForm() {
  $form = [];
  $form_state = $this
    ->createMock(FormStateInterface::class);
  $form_state
    ->expects($this
    ->once())
    ->method('setRebuild')
    ->with(TRUE);
  $this->sut
    ->rebuildForm($form, $form_state);
}