You are here

public function PaymentUnitTest::testGetPaymentType in Payment 8.2

Tests getPaymentType().

File

tests/src/Kernel/PaymentUnitTest.php, line 80

Class

PaymentUnitTest
\Drupal\payment\Entity\Payment unit test.

Namespace

Drupal\Tests\payment\Kernel

Code

public function testGetPaymentType() {
  $this
    ->assertTrue($this->payment
    ->getPaymentType() instanceof PaymentTypeInterface);
  $this
    ->assertIdentical($this->payment
    ->getPaymentType()
    ->getPluginId(), $this->bundle);
}