1234567891011121314151617181920212223 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- /**
- * Legacy tests to find themes non-modular local.xml files declaration
- */
- namespace Magento\Test\Legacy;
- use Magento\Framework\Component\ComponentRegistrar;
- class ObsoleteThemeLocalXmlTest extends \PHPUnit\Framework\TestCase
- {
- public function testLocalXmlFilesAbsent()
- {
- $componentRegistrar = new ComponentRegistrar();
- foreach ($componentRegistrar->getPaths(ComponentRegistrar::THEME) as $themeDir) {
- $this->assertEmpty(glob($themeDir . '/local.xml'));
- }
- }
- }
|