123456789101112131415161718192021222324252627 |
- <?php
- /**
- * Copyright © Magento, Inc. All rights reserved.
- * See COPYING.txt for license details.
- */
- /**
- * Helper with routines to work with Magento config
- */
- namespace Magento\TestFramework\Helper;
- class Config
- {
- /**
- * Returns enabled modules in the system
- *
- * @return array
- */
- public function getEnabledModules()
- {
- /** @var \Magento\Framework\Module\ModuleListInterface $moduleList */
- $moduleList = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
- \Magento\Framework\Module\ModuleListInterface::class
- );
- return $moduleList->getNames();
- }
- }
|