9 use Magento\Mtf\Fixture\FixtureFactory;
10 use Magento\Mtf\TestCase\Injectable;
11 use Magento\Reports\Test\Page\Adminhtml\SalesTaxReport;
12 use Magento\Reports\Test\Page\Adminhtml\Statistics;
14 use Magento\Sales\Test\Page\Adminhtml\OrderIndex;
15 use Magento\Sales\Test\Page\Adminhtml\OrderInvoiceNew;
16 use Magento\Sales\Test\Page\Adminhtml\SalesOrderView;
18 use Magento\Tax\Test\Page\Adminhtml\TaxRuleIndex;
19 use Magento\Tax\Test\Page\Adminhtml\TaxRuleNew;
108 private $fixtureFactory;
117 $deleteTaxRule = $this->objectManager->create(\
Magento\Tax\Test\TestStep\DeleteAllTaxRulesStep::class);
118 $deleteTaxRule->run();
142 FixtureFactory $fixtureFactory
151 $this->fixtureFactory = $fixtureFactory;
173 $this->orderIndex->open();
174 $this->orderIndex->getSalesOrderGrid()->searchAndOpen([
'id' =>
$order->getId()]);
176 $this->reportStatistic->open();
177 $this->reportStatistic->getGridBlock()->massaction(
178 [[
'report' =>
'Tax']],
179 'Refresh Statistics for the Last Day',
184 $this->salesTaxReport->open();
185 $this->salesTaxReport->getFilterBlock()->viewsReport($report);
186 $this->salesTaxReport->getActionBlock()->showReport();
198 if ($orderSteps ===
'-') {
203 $cart = $this->fixtureFactory->createByCode(
'cart',
$cart);
206 $this->objectManager->create(
207 'Magento\Sales\Test\TestStep\\Create' . ucfirst(trim($orderStep)) .
'Step',
220 $deleteTaxRule = $this->objectManager->create(\
Magento\Tax\Test\TestStep\DeleteAllTaxRulesStep::class);
221 $deleteTaxRule->run();
__inject(OrderIndex $orderIndex, OrderInvoiceNew $orderInvoiceNew, SalesOrderView $salesOrderView, Statistics $reportStatistic, SalesTaxReport $salesTaxReport, TaxRuleIndex $taxRuleIndexPage, TaxRuleNew $taxRuleNewPage, FixtureFactory $fixtureFactory)
test(OrderInjectable $order, TaxRule $taxRule, array $report, $orderSteps)
processOrder($orderSteps, OrderInjectable $order)