You are here

public function PaymentStatusBaseTest::testHasAncestor in Payment 8.2

@covers ::hasAncestor

File

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

Class

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

Namespace

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

Code

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