File tree Expand file tree Collapse file tree 3 files changed +4
-13
lines changed
src/Magento/FunctionalTestingFramework Expand file tree Collapse file tree 3 files changed +4
-13
lines changed Original file line number Diff line number Diff line change 70
70
71
71
$ RELATIVE_TESTS_MODULE_PATH = '/tests/functional/tests/MFTF ' ;
72
72
defined ('TESTS_MODULE_PATH ' ) || define ('TESTS_MODULE_PATH ' , realpath (TESTS_BP . $ RELATIVE_TESTS_MODULE_PATH ));
73
-
74
-
75
- // add the debug flag here
76
- $ debug_mode = $ _ENV ['MFTF_DEBUG ' ] ?? false ;
Original file line number Diff line number Diff line change @@ -100,17 +100,15 @@ private function __construct(
100
100
101
101
$ this ->phase = $ phase ;
102
102
$ this ->verboseEnabled = $ verboseEnabled ;
103
- if (isset ( $ debugLevel ) && !in_array (strtolower ($ debugLevel ), self ::MFTF_DEBUG_LEVEL )) {
103
+ if (!in_array (strtolower ($ debugLevel ), self ::MFTF_DEBUG_LEVEL )) {
104
104
throw new TestFrameworkException ("{$ debugLevel } is not a debug level. Use 'DEFAULT' or 'DEVELOPER' " );
105
105
}
106
106
switch (strtolower ($ debugLevel )) {
107
- case self ::LEVEL_DEVELOPER :
108
107
case self ::LEVEL_DEFAULT :
109
- $ this ->debugLevel = $ debugLevel ;
108
+ $ this ->debugLevel = self :: LEVEL_DEFAULT ;
110
109
break ;
111
- case null :
110
+ default :
112
111
$ this ->debugLevel = self ::LEVEL_DEVELOPER ;
113
- break ;
114
112
}
115
113
$ this ->allowSkipped = $ allowSkipped ;
116
114
$ this ->filterList = new FilterList ($ filters );
@@ -196,7 +194,7 @@ public function verboseEnabled()
196
194
*/
197
195
public function getDebugLevel ()
198
196
{
199
- return $ this ->debugLevel ?? getenv ( ' MFTF_DEBUG ' ) ;
197
+ return $ this ->debugLevel ;
200
198
}
201
199
202
200
/**
Original file line number Diff line number Diff line change 74
74
'TESTS_MODULE_PATH ' ,
75
75
realpath (TESTS_BP . $ RELATIVE_TESTS_MODULE_PATH )
76
76
);
77
-
78
- // add the debug flag here
79
- $ debugMode = $ _ENV ['MFTF_DEBUG ' ] ?? false ;
You can’t perform that action at this time.
0 commit comments