public function PaymentTypeBaseTest::testGetPayment in Payment 8.2
@covers ::setPayment @covers ::getPayment
File
- tests/
src/ Unit/ Plugin/ Payment/ Type/ PaymentTypeBaseTest.php, line 97
Class
- PaymentTypeBaseTest
- @coversDefaultClass \Drupal\payment\Plugin\Payment\Type\PaymentTypeBase
Namespace
Drupal\Tests\payment\Unit\Plugin\Payment\TypeCode
public function testGetPayment() {
$payment = $this
->createMock(PaymentInterface::class);
$this
->assertSame($this->sut, $this->sut
->setPayment($payment));
$this
->assertSame($payment, $this->sut
->getPayment());
}