/
githubmirror
/
magento2
Обзор
Документация
Войти
/
githubmirror
/
magento2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
2.4-develop
dev/tests/integration/testsuite/Magento/Tax/Model/ConfigTest.php
38 строк
1 KB
Alexandra Zota
ACP2E-4019: CE copyright updates for 2.4.9-beta1
22 окт 2025, 10:44
22 окт 2025, 10:44
264bea2
Код
Авторство
О чём код?
<?php /** * Copyright 2013 Adobe * All Rights Reserved. */ namespace Magento\Tax\Model; class ConfigTest extends \PHPUnit\Framework\TestCase { /** * @var \Magento\Tax\Model\Config */ protected $_model = null; protected function setUp(): void { $this->_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()); } }