public function PaymentStatusBaseTest::testGetChildren in Payment 8.2
@covers ::getChildren
File
- tests/
src/ Unit/ Plugin/ Payment/ Status/ PaymentStatusBaseTest.php, line 189
Class
- PaymentStatusBaseTest
- @coversDefaultClass \Drupal\payment\Plugin\Payment\Status\PaymentStatusBase
Namespace
Drupal\Tests\payment\Unit\Plugin\Payment\StatusCode
public function testGetChildren() {
$children = array(
$this
->randomMachineName(),
);
$this->paymentStatusManager
->expects($this
->once())
->method('getChildren')
->with($this->pluginId)
->willReturn($children);
$this
->assertSame($children, $this->sut
->getChildren());
}