10 use Magento\Tax\Test\Page\Adminhtml\TaxRuleIndex;
11 use Magento\Tax\Test\Page\Adminhtml\TaxRuleNew;
12 use Magento\Mtf\Fixture\FixtureFactory;
13 use Magento\Mtf\TestCase\Injectable;
57 public function __prepare(FixtureFactory $fixtureFactory)
59 $customer = $fixtureFactory->createByCode(
'customer', [
'dataset' =>
'johndoe_retailer']);
86 TaxRule $initialTaxRule,
90 $initialTaxRule->persist();
93 $this->taxRuleIndexPage->open();
94 $this->taxRuleIndexPage->getTaxRuleGrid()->searchAndOpen([
'code' => $initialTaxRule->getCode()]);
95 $this->taxRuleNewPage->getTaxRuleForm()->fill(
$taxRule);
96 $this->taxRuleNewPage->getFormPageActions()->save();
106 $this->objectManager->create(\
Magento\Tax\Test\TestStep\DeleteAllTaxRulesStep::class, [])->run();
__inject(TaxRuleIndex $taxRuleIndexPage, TaxRuleNew $taxRuleNewPage)
testUpdateTaxRule(TaxRule $initialTaxRule, TaxRule $taxRule)
__prepare(FixtureFactory $fixtureFactory)