You are here

public function BasicTest::testBuildConfigurationForm in Payment 8.2

Same name in this branch
  1. 8.2 tests/src/Unit/Plugin/Payment/MethodConfiguration/BasicTest.php \Drupal\Tests\payment\Unit\Plugin\Payment\MethodConfiguration\BasicTest::testBuildConfigurationForm()
  2. 8.2 tests/src/Unit/Plugin/Payment/LineItem/BasicTest.php \Drupal\Tests\payment\Unit\Plugin\Payment\LineItem\BasicTest::testBuildConfigurationForm()

@covers ::buildConfigurationForm

File

tests/src/Unit/Plugin/Payment/LineItem/BasicTest.php, line 123

Class

BasicTest
@coversDefaultClass \Drupal\payment\Plugin\Payment\LineItem\Basic

Namespace

Drupal\Tests\payment\Unit\Plugin\Payment\LineItem

Code

public function testBuildConfigurationForm() {
  $form = [];
  $form_state = $this
    ->createMock(FormStateInterface::class);
  $form_elements = $this->sut
    ->buildConfigurationForm($form, $form_state);
  $this
    ->assertIsArray($form_elements);
}