ObsoleteThemeLocalXmlTest.php 620 B

1234567891011121314151617181920212223
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Legacy tests to find themes non-modular local.xml files declaration
  8. */
  9. namespace Magento\Test\Legacy;
  10. use Magento\Framework\Component\ComponentRegistrar;
  11. class ObsoleteThemeLocalXmlTest extends \PHPUnit\Framework\TestCase
  12. {
  13. public function testLocalXmlFilesAbsent()
  14. {
  15. $componentRegistrar = new ComponentRegistrar();
  16. foreach ($componentRegistrar->getPaths(ComponentRegistrar::THEME) as $themeDir) {
  17. $this->assertEmpty(glob($themeDir . '/local.xml'));
  18. }
  19. }
  20. }