Config.php 647 B

123456789101112131415161718192021222324252627
  1. <?php
  2. /**
  3. * Copyright © Magento, Inc. All rights reserved.
  4. * See COPYING.txt for license details.
  5. */
  6. /**
  7. * Helper with routines to work with Magento config
  8. */
  9. namespace Magento\TestFramework\Helper;
  10. class Config
  11. {
  12. /**
  13. * Returns enabled modules in the system
  14. *
  15. * @return array
  16. */
  17. public function getEnabledModules()
  18. {
  19. /** @var \Magento\Framework\Module\ModuleListInterface $moduleList */
  20. $moduleList = \Magento\TestFramework\Helper\Bootstrap::getObjectManager()->get(
  21. \Magento\Framework\Module\ModuleListInterface::class
  22. );
  23. return $moduleList->getNames();
  24. }
  25. }