From f559e75e425314ed36ab9e481922e13507b302bb Mon Sep 17 00:00:00 2001 From: Soumya Unnikrishnan Date: Thu, 12 Mar 2020 15:09:15 -0500 Subject: [PATCH] MQE-1581: Remove NONE debug level for next MFTF major release Overriding pipeline code for debug level = none --- .../Config/MftfApplicationConfig.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/Magento/FunctionalTestingFramework/Config/MftfApplicationConfig.php b/src/Magento/FunctionalTestingFramework/Config/MftfApplicationConfig.php index ab06b5612..5181e8dc9 100644 --- a/src/Magento/FunctionalTestingFramework/Config/MftfApplicationConfig.php +++ b/src/Magento/FunctionalTestingFramework/Config/MftfApplicationConfig.php @@ -100,6 +100,12 @@ private function __construct( $this->phase = $phase; $this->verboseEnabled = $verboseEnabled; + + //TODO: overriding pipeline config, to be removed for MFTF 3.0.0 + if (strtolower($debugLevel) === 'none') { + $debugLevel = self::LEVEL_DEFAULT; + } + if (isset($debugLevel) && !in_array(strtolower($debugLevel), self::MFTF_DEBUG_LEVEL)) { throw new TestFrameworkException("{$debugLevel} is not a debug level. Use 'DEFAULT' or 'DEVELOPER'"); }