You are here

public function PaymentUnitTest::testGetOwnerId in Payment 8.2

Tests setOwnerId() and getOwnerId().

File

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

Class

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

Namespace

Drupal\Tests\payment\Kernel

Code

public function testGetOwnerId() {
  $id = 5;
  $this
    ->assertTrue($this->payment
    ->setOwnerId($id) instanceof PaymentInterface);
  $this
    ->assertIdentical($this->payment
    ->getOwnerId(), $id);
}