You are here

public function CsvParserFormTest::testConfigurationForm in Feeds 8.3

@covers ::buildConfigurationForm

File

tests/src/Unit/Feeds/Parser/Form/CsvParserFormTest.php, line 19

Class

CsvParserFormTest
@coversDefaultClass \Drupal\feeds\Feeds\Parser\Form\CsvParserForm @group feeds

Namespace

Drupal\Tests\feeds\Unit\Feeds\Parser\Form

Code

public function testConfigurationForm() {
  $form_state = new FormState();
  $plugin = $this
    ->prophesize(FeedsPluginInterface::class);
  $form_object = new CsvParserForm();
  $form_object
    ->setStringTranslation($this
    ->getStringTranslationStub());
  $form_object
    ->setPlugin($plugin
    ->reveal());
  $form = $form_object
    ->buildConfigurationForm([], $form_state);
  $this
    ->assertSame(count($form), 2);
}