Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
SubmitOrderNegativeStep.php
Go to the documentation of this file.
1 <?php
8 
9 use Magento\Sales\Test\Page\Adminhtml\OrderCreateIndex;
10 use Magento\Mtf\TestStep\TestStepInterface;
11 
15 class SubmitOrderNegativeStep implements TestStepInterface
16 {
22  protected $orderCreateIndex;
23 
28  public function __construct(
29  OrderCreateIndex $orderCreateIndex
30  ) {
31  $this->orderCreateIndex = $orderCreateIndex;
32  }
33 
39  public function run()
40  {
41  $this->orderCreateIndex->getCreateBlock()->submitOrder();
42  }
43 }