10 use Magento\Sales\Test\Page\Adminhtml\OrderIndex;
11 use Magento\Sales\Test\Page\Adminhtml\SalesOrderView;
12 use Magento\Mtf\TestCase\Injectable;
13 use Magento\Mtf\TestStep\TestStepFactory;
79 public function test(OrderInjectable
$order, TestStepFactory $stepFactory, $configData)
82 $this->configData = $configData;
84 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
85 [
'configData' => $configData]
90 $this->orderIndex->open();
91 $this->orderIndex->getSalesOrderGrid()->searchAndOpen([
'id' =>
$order->getId()]);
92 $this->salesOrderView->getPageActions()->cancel();
95 'customer' =>
$order->getDataFieldConfig(
'customer_id')[
'source']->getCustomer(),
106 $this->objectManager->create(
107 \
Magento\Config\Test\TestStep\SetupConfigurationStep::class,
108 [
'configData' => $this->configData,
'rollback' =>
true]
test(OrderInjectable $order, TestStepFactory $stepFactory, $configData)
__inject(OrderIndex $orderIndex, SalesOrderView $salesOrderView)