![]() Server : Apache System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64 User : corals ( 1002) PHP Version : 7.4.33 Disable Function : exec,passthru,shell_exec,system Directory : /home/corals/old/dev/tests/integration/testsuite/Magento/Config/App/Config/Type/ |
<?php /** * Copyright © Magento, Inc. All rights reserved. * See COPYING.txt for license details. */ namespace Magento\Config\App\Config\Type; use Magento\Framework\ObjectManagerInterface; use Magento\TestFramework\Helper\Bootstrap; /** * @magentoDataFixture Magento/Config/_files/config_data.php * @magentoAppIsolation enabled */ class SystemTest extends \PHPUnit\Framework\TestCase { /** * @var System */ private $system; /** * @var ObjectManagerInterface */ private $objectManager; protected function setUp(): void { $this->objectManager = Bootstrap::getObjectManager(); $this->system = $this->objectManager->create(System::class); } public function testGetValueDefaultScope() { $this->assertEquals( 'value1.db.default.test', $this->system->get('default/web/test/test_value_1') ); $this->assertEquals( 'value1.db.website_base.test', $this->system->get('websites/base/web/test/test_value_1') ); $this->assertEquals( 'value1.db.store_default.test', $this->system->get('stores/default/web/test/test_value_1') ); } }