You are here

public function HttpFetcherFormTest::testConfigurationForm in Feeds 8.3

Tests the configuration form.

@covers ::buildConfigurationForm

File

tests/src/Unit/Feeds/Fetcher/Form/HttpFetcherFormTest.php, line 21

Class

HttpFetcherFormTest
@coversDefaultClass \Drupal\feeds\Feeds\Fetcher\Form\HttpFetcherForm @group feeds

Namespace

Drupal\Tests\feeds\Unit\Feeds\Fetcher\Form

Code

public function testConfigurationForm() {
  $form_object = new HttpFetcherForm();
  $form_object
    ->setPlugin($this
    ->createMock(FeedsPluginInterface::class));
  $form_object
    ->setStringTranslation($this
    ->getStringTranslationStub());
  $form = $form_object
    ->buildConfigurationForm([], new FormState());
  $this
    ->assertIsArray($form);
  $this
    ->assertNotEmpty($form);
}