public function PaymentMethodBaseTest::testBuildConfigurationForm in Payment 8.2
@covers ::buildConfigurationForm
@dataProvider providerTestBuildConfigurationForm
File
- tests/src/ Unit/ Plugin/ Payment/ Method/ PaymentMethodBaseTest.php, line 164 
Class
- PaymentMethodBaseTest
- @coversDefaultClass \Drupal\payment\Plugin\Payment\Method\PaymentMethodBase
Namespace
Drupal\Tests\payment\Unit\Plugin\Payment\MethodCode
public function testBuildConfigurationForm($filter_exists) {
  $this->moduleHandler
    ->expects($this
    ->atLeastOnce())
    ->method('moduleExists')
    ->with('filter')
    ->willReturn($filter_exists);
  $form = [];
  $form_state = $this
    ->createMock(FormStateInterface::class);
  $payment = $this
    ->getMockPayment();
  $elements = $this->sut
    ->buildConfigurationForm($form, $form_state, $payment);
  $this
    ->assertIsArray($elements);
  $this
    ->assertArrayHasKey('message', $elements);
  $this
    ->assertIsArray($elements['message']);
}