You are here

public function PaymentStatusBaseTest::testGetDescendants in Payment 8.2

@covers ::getDescendants

File

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

Class

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

Namespace

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

Code

public function testGetDescendants() {
  $descendants = array(
    $this
      ->randomMachineName(),
  );
  $this->paymentStatusManager
    ->expects($this
    ->once())
    ->method('getDescendants')
    ->with($this->pluginId)
    ->willReturn($descendants);
  $this
    ->assertSame($descendants, $this->sut
    ->getDescendants());
}