You are here

public function PaymentStatusBaseTest::testGetPayment in Payment 8.2

@covers ::setPayment @covers ::getPayment

File

tests/src/Unit/Plugin/Payment/Status/PaymentStatusBaseTest.php, line 180

Class

PaymentStatusBaseTest
@coversDefaultClass \Drupal\payment\Plugin\Payment\Status\PaymentStatusBase

Namespace

Drupal\Tests\payment\Unit\Plugin\Payment\Status

Code

public function testGetPayment() {
  $payment = $this
    ->createMock(PaymentInterface::class);
  $this
    ->assertSame($this->sut, $this->sut
    ->setPayment($payment));
  $this
    ->assertSame($payment, $this->sut
    ->getPayment());
}