public function BasicTest::testBuildConfigurationForm in Payment 8.2
Same name in this branch
- 8.2 tests/src/Unit/Plugin/Payment/MethodConfiguration/BasicTest.php \Drupal\Tests\payment\Unit\Plugin\Payment\MethodConfiguration\BasicTest::testBuildConfigurationForm()
- 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/ MethodConfiguration/ BasicTest.php, line 162
Class
- BasicTest
- @coversDefaultClass \Drupal\payment\Plugin\Payment\MethodConfiguration\Basic
Namespace
Drupal\Tests\payment\Unit\Plugin\Payment\MethodConfigurationCode
public function testBuildConfigurationForm() {
$form = [];
$form_state = new FormState();
$elements = $this->sut
->buildConfigurationForm($form, $form_state);
$form['plugin_form']['#process'][] = array(
$this->sut,
'processBuildConfigurationForm',
);
$this
->assertArrayHasKey('message', $elements);
$this
->assertArrayHasKey('plugin_form', $elements);
$this
->assertSame(array(
array(
$this->sut,
'processBuildConfigurationForm',
),
), $elements['plugin_form']['#process']);
}