You are here

public function PaymentMethodBaseTest::testGetConfiguration in Payment 8.2

@covers ::setConfiguration @covers ::getConfiguration

File

tests/src/Unit/Plugin/Payment/Method/PaymentMethodBaseTest.php, line 127

Class

PaymentMethodBaseTest
@coversDefaultClass \Drupal\payment\Plugin\Payment\Method\PaymentMethodBase

Namespace

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

Code

public function testGetConfiguration() {
  $configuration = [
    $this
      ->randomMachineName() => mt_rand(),
  ];
  $this
    ->assertNull($this->sut
    ->setConfiguration($configuration));
  $this
    ->assertSame($configuration, $this->sut
    ->getConfiguration());
}