You are here

public function PaymentMethodBaseTest::testGetPayment in Payment 8.2

@covers ::setPayment @covers ::getPayment

File

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

Class

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

Namespace

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

Code

public function testGetPayment() {
  $payment = $this
    ->getMockPayment();
  $this
    ->assertSame($this->sut, $this->sut
    ->setPayment($payment));
  $this
    ->assertSame($payment, $this->sut
    ->getPayment());
}