You are here

public function UnavailableTest::testBuildConfigurationForm in Payment 8.2

@covers ::buildConfigurationForm

File

tests/src/Unit/Plugin/Payment/Method/UnavailableTest.php, line 126

Class

UnavailableTest
@coversDefaultClass \Drupal\payment\Plugin\Payment\Method\Unavailable

Namespace

Drupal\Tests\payment\Unit\Plugin\Payment\Method

Code

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