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\StatusCode
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));
}