You are here

public function TextTest::testBuildConfigurationForm in Feeds 8.3

@covers ::buildConfigurationForm

File

tests/src/Unit/Feeds/Target/TextTest.php, line 83

Class

TextTest
@coversDefaultClass \Drupal\feeds\Feeds\Target\Text @group feeds

Namespace

Drupal\Tests\feeds\Unit\Feeds\Target

Code

public function testBuildConfigurationForm() {
  $this->target
    ->expects($this
    ->once())
    ->method('getFilterFormats')
    ->willReturn([
    'test_format' => $this->filter
      ->reveal(),
  ]);
  $form_state = new FormState();
  $form = $this->target
    ->buildConfigurationForm([], $form_state);
  $this
    ->assertSame(count($form), 1);
}