public function PaymentMethodConfigurationBaseTest::testGetConfiguration in Payment 8.2
@covers ::setConfiguration @covers ::getConfiguration
File
- tests/
src/ Unit/ Plugin/ Payment/ MethodConfiguration/ PaymentMethodConfigurationBaseTest.php, line 165
Class
- PaymentMethodConfigurationBaseTest
- @coversDefaultClass \Drupal\payment\Plugin\Payment\MethodConfiguration\PaymentMethodConfigurationBase
Namespace
Drupal\Tests\payment\Unit\Plugin\Payment\MethodConfigurationCode
public function testGetConfiguration() {
$configuration = array(
$this
->randomMachineName() => $this
->randomMachineName(),
) + $this->sut
->defaultConfiguration();
$return = $this->sut
->setConfiguration($configuration);
$this
->assertSame(NULL, $return);
$this
->assertSame($configuration, $this->sut
->getConfiguration());
}