public function PaymentTest::testStatusManager in Payment 8.2
@covers ::statusManager
File
- tests/
src/ Unit/ PaymentTest.php, line 69
Class
- PaymentTest
- @coversDefaultClass \Drupal\payment\Payment
Namespace
Drupal\Tests\payment\UnitCode
public function testStatusManager() {
$container = new Container();
$status_manager = $this
->createMock(PaymentStatusManagerInterface::class);
$container
->set('plugin.manager.payment.status', $status_manager);
\Drupal::setContainer($container);
$this
->assertSame($status_manager, Payment::statusManager());
}