public function PaymentMethodConfigurationBaseTest::testDefaultConfiguration in Payment 8.2
@covers ::defaultConfiguration
File
- tests/
src/ Unit/ Plugin/ Payment/ MethodConfiguration/ PaymentMethodConfigurationBaseTest.php, line 64
Class
- PaymentMethodConfigurationBaseTest
- @coversDefaultClass \Drupal\payment\Plugin\Payment\MethodConfiguration\PaymentMethodConfigurationBase
Namespace
Drupal\Tests\payment\Unit\Plugin\Payment\MethodConfigurationCode
public function testDefaultConfiguration() {
$configuration = $this->sut
->defaultConfiguration();
$this
->assertIsArray($configuration);
foreach (array(
'message_text',
'message_text_format',
) as $key) {
$this
->assertArrayHasKey($key, $configuration);
$this
->assertIsString($configuration[$key]);
}
}