CrontabConfigFilesTest.php 982 B

12345678910111213141516171819202122232425262728293031323334353637
  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 CrontabConfigFilesTest extends AbstractMergedConfigTest
  8. {
  9. /**
  10. * attributes represent merging rules
  11. * copied from original class \Magento\Framework\App\Route\Config\Reader
  12. *
  13. * @var array
  14. */
  15. protected function getIdAttributes()
  16. {
  17. return ['/config/group' => 'id', '/config/group/job' => 'name'];
  18. }
  19. /**
  20. * Path to tough XSD for merged file validation
  21. *
  22. * @var string
  23. */
  24. protected function getMergedSchemaFile()
  25. {
  26. $objectManager = \Magento\TestFramework\Helper\Bootstrap::getObjectManager();
  27. return $objectManager->get(\Magento\Cron\Model\Config\SchemaLocator::class)->getSchema();
  28. }
  29. protected function getConfigFiles()
  30. {
  31. return \Magento\Framework\App\Utility\Files::init()->getConfigFiles('crontab.xml');
  32. }
  33. }