You are here

public function PaymentStatusBaseTest::testIsOrHasAncestor in Payment 8.2

@covers ::isOrHasAncestor

File

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

Class

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

Namespace

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

Code

public function testIsOrHasAncestor() {
  $expected = TRUE;
  $this->paymentStatusManager
    ->expects($this
    ->once())
    ->method('isOrHasAncestor')
    ->with($this->pluginId)
    ->willReturn($expected);
  $this
    ->assertSame($expected, $this->sut
    ->isOrHasAncestor($this->pluginId));
}