BaseTest.php 621 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Framework\App\Config;
  7. class BaseTest extends \PHPUnit\Framework\TestCase
  8. {
  9. public function testConstruct()
  10. {
  11. $xml = <<<XML
  12. <?xml version="1.0"?>
  13. <root><key>value</key></root>
  14. XML;
  15. $config = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->create(
  16. \Magento\Framework\App\Config\Base::class,
  17. ['sourceData' => $xml]
  18. );
  19. $this->assertInstanceOf(\Magento\Framework\App\Config\Element::class, $config->getNode('key'));
  20. }
  21. }