/**
  * @param string $settingName
  * @param string $expectedResult
  * @dataProvider getAsMatchingPathsDataProvider
  */
 public function testGetAsMatchingPaths($settingName, $expectedResult)
 {
     $actualResult = $this->_object->getAsMatchingPaths($settingName);
     if (is_array($actualResult)) {
         sort($actualResult);
     }
     $this->assertEquals($expectedResult, $actualResult);
 }
Esempio n. 2
0
 /**
  * Constructor
  *
  * @param \Magento\TestFramework\Bootstrap\Settings $settings,
  * @param \Magento\TestFramework\Bootstrap\Environment $envBootstrap,
  * @param \Magento\TestFramework\Bootstrap\DocBlock $docBlockBootstrap,
  * @param \Magento\TestFramework\Bootstrap\Profiler $profilerBootstrap
  * @param \Magento\Framework\Shell $shell
  * @param string $tmpDir
  */
 public function __construct(\Magento\TestFramework\Bootstrap\Settings $settings, \Magento\TestFramework\Bootstrap\Environment $envBootstrap, \Magento\TestFramework\Bootstrap\DocBlock $docBlockBootstrap, \Magento\TestFramework\Bootstrap\Profiler $profilerBootstrap, \Magento\Framework\Shell $shell, $tmpDir)
 {
     $this->_settings = $settings;
     $this->_envBootstrap = $envBootstrap;
     $this->_docBlockBootstrap = $docBlockBootstrap;
     $this->_profilerBootstrap = $profilerBootstrap;
     $this->_shell = $shell;
     $this->_tmpDir = $tmpDir;
     $this->_application = $this->_createApplication(array($this->_settings->getAsConfigFile('TESTS_LOCAL_CONFIG_FILE'), $this->_settings->getAsConfigFile('TESTS_LOCAL_CONFIG_EXTRA_FILE')), $this->_settings->get('TESTS_GLOBAL_CONFIG_DIR'), $this->_settings->getAsMatchingPaths('TESTS_MODULE_CONFIG_FILES'), $this->_settings->get('TESTS_MAGENTO_MODE'));
 }