SalesConfigFilesTest.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. namespace Magento\Test\Integrity\Modular;
  7. class SalesConfigFilesTest extends AbstractMergedConfigTest
  8. {
  9. /**
  10. * attributes represent merging rules
  11. * copied from original namespace Magento\Framework\App\Route\Config;
  12. *
  13. * class Reader
  14. *
  15. * @var array
  16. */
  17. protected function getIdAttributes()
  18. {
  19. return [
  20. '/config/section' => 'name',
  21. '/config/section/group' => 'name',
  22. '/config/section/group/item' => 'name',
  23. '/config/section/group/item/renderer' => 'name',
  24. '/config/order/available_product_type' => 'name',
  25. ];
  26. }
  27. /**
  28. * Path to tough XSD for merged file validation
  29. *
  30. * @var string
  31. */
  32. protected function getMergedSchemaFile()
  33. {
  34. $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
  35. return $objectManager->get(\Magento\Sales\Model\Config\SchemaLocator::class)->getSchema();
  36. }
  37. protected function getConfigFiles()
  38. {
  39. return \Magento\Framework\App\Utility\Files::init()->getConfigFiles('sales.xml');
  40. }
  41. }