Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
payment_method.php
Go to the documentation of this file.
1 <?php
6 declare(strict_types=1);
7 
11 
16 if (empty($quote)) {
17  throw new \Exception('$quote should be defined in the parent fixture');
18 }
19 
21 $objectManager = Bootstrap::getObjectManager();
22 
24 $payment = $objectManager->create(PaymentInterface::class);
25 $payment->setMethod('checkmo');
26 
27 $quote->setPayment($payment);
$payment
$quote
$objectManager