Skip to content

Commit c01b79b

Browse files
authored
Merge pull request #193 from magento-commerce/MQE-3520
MQE-3520: ModuleResolver improvement
2 parents 1eec579 + dad8df1 commit c01b79b

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/Magento/FunctionalTestingFramework/Util/ModuleResolver.php

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
namespace Magento\FunctionalTestingFramework\Util;
88

99
use Magento\FunctionalTestingFramework\Config\MftfApplicationConfig;
10+
use Magento\FunctionalTestingFramework\Exceptions\FastFailException;
1011
use Magento\FunctionalTestingFramework\Exceptions\TestFrameworkException;
1112
use Magento\FunctionalTestingFramework\Util\ModuleResolver\ModuleResolverService;
1213
use Magento\FunctionalTestingFramework\Util\Logger\LoggingUtil;
@@ -168,6 +169,7 @@ private function __construct()
168169
*
169170
* @return array
170171
* @throws TestFrameworkException
172+
* @throws FastFailException
171173
*/
172174
public function getEnabledModules()
173175
{
@@ -201,7 +203,7 @@ public function getEnabledModules()
201203
"MAGENTO_ADMIN_USERNAME" => getenv("MAGENTO_ADMIN_USERNAME"),
202204
"MAGENTO_ADMIN_PASSWORD" => getenv("MAGENTO_ADMIN_PASSWORD"),
203205
];
204-
throw new TestFrameworkException($message, $context);
206+
throw new FastFailException($message, $context);
205207
}
206208

207209
$this->enabledModules = json_decode($response);
@@ -215,6 +217,7 @@ public function getEnabledModules()
215217
* @param boolean $verbosePath
216218
* @return array
217219
* @throws TestFrameworkException
220+
* @throws FastFailException
218221
*/
219222
public function getModulesPath($verbosePath = false)
220223
{

0 commit comments

Comments
 (0)