public function PaymentTest::testLineItemManager in Payment 8.2
@covers ::lineItemManager
File
- tests/
src/ Unit/ PaymentTest.php, line 36
Class
- PaymentTest
- @coversDefaultClass \Drupal\payment\Payment
Namespace
Drupal\Tests\payment\UnitCode
public function testLineItemManager() {
$container = new Container();
$line_item_manager = $this
->createMock(PaymentLineItemManagerInterface::class);
$container
->set('plugin.manager.payment.line_item', $line_item_manager);
\Drupal::setContainer($container);
$this
->assertSame($line_item_manager, Payment::lineItemManager());
}