Skip to content

Commit c7fd2f3

Browse files
committed
MQE-809: Throw a warning or error when step key referencing in merges is invalid or ambiguous
- add the application config to generate:tests command
1 parent e757c90 commit c7fd2f3

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

dev/tests/acceptance/RoboFile.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -151,9 +151,12 @@ function generateTests(array $tests, $opts = [
151151
*/
152152
private function createTestConfiguration($tests, $opts)
153153
{
154-
// set these globals as we only run this method during generation.
155-
$GLOBALS['GENERATE_TESTS'] = true;
156-
$GLOBALS['FORCE_PHP_GENERATE'] = $opts['force'];
154+
// set our application configuration so we can references the user options in our framework
155+
Magento\FunctionalTestingFramework\Config\MftfApplicationConfig::create(
156+
$opts['force'],
157+
Magento\FunctionalTestingFramework\Config\MftfApplicationConfig::GENERATION_PHASE,
158+
$opts['verbose']
159+
);
157160

158161
$testConfiguration = [];
159162
$testConfiguration['tests'] = $tests;

0 commit comments

Comments
 (0)