/** * @magentoDbIsolation enabled * @expectedException \Magento\Framework\Exception\InputException * @expectedExceptionMessage code */ public function testUpdateTaxRuleMissingRequiredFields() { $taxRuleServiceData = $this->taxRuleService->createTaxRule($this->createTaxRuleDataObject()); $updatedTaxRule = $this->taxRuleBuilder->populate($taxRuleServiceData)->setCode(null)->create(); $this->taxRuleService->updateTaxRule($updatedTaxRule); }