_model = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create( \Magento\Tax\Model\Config::class ); } public function testSetPriceIncludesTax() { $this->assertFalse($this->_model->priceIncludesTax()); $this->assertSame($this->_model, $this->_model->setPriceIncludesTax(1)); $this->assertTrue($this->_model->priceIncludesTax()); $this->_model->setPriceIncludesTax(null); $this->assertFalse($this->_model->priceIncludesTax()); } /** * @magentoConfigFixture current_store tax/calculation/price_includes_tax 1 */ public function testPriceIncludesTaxNonDefault() { $this->assertTrue($this->_model->priceIncludesTax()); } }