objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager(); /** @var $helper \Magento\Tax\Helper\Data */ $this->helper = $this->objectManager->get(\Magento\Tax\Helper\Data::class); } /** * @magentoConfigFixture default_store tax/classes/default_customer_tax_class 1 */ public function testGetDefaultCustomerTaxClass() { $this->assertEquals(1, $this->helper->getDefaultCustomerTaxClass()); } /** * @magentoConfigFixture default_store tax/classes/default_product_tax_class 1 */ public function testGetDefaultProductTaxClass() { $this->assertEquals(1, $this->helper->getDefaultProductTaxClass()); } }