Skip to content

Commit 1c53abe

Browse files
committed
ACQE-6716 | Unneeded reports are shown when MFTF Static tests fail
1 parent a717b6c commit 1c53abe

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: src/Magento/FunctionalTestingFramework/StaticCheck/ClassFileNamingCheck.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function execute(InputInterface $input)
9696
StaticChecksList::getErrorFilesPath() . DIRECTORY_SEPARATOR . self::ERROR_LOG_FILENAME . '.txt',
9797
self::ERROR_LOG_MESSAGE
9898
);
99-
if (!empty($this->warnings) && !empty($this->errors) ) {
99+
if (!empty($this->warnings) && !empty($this->errors)) {
100100
$this->output .= "\n " . $this->scriptUtil->printWarningsToFile(
101101
$this->warnings,
102102
StaticChecksList::getErrorFilesPath() . DIRECTORY_SEPARATOR . self::WARNING_LOG_FILENAME . '.txt',

Diff for: src/Magento/FunctionalTestingFramework/StaticCheck/TestDependencyCheck.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@ public function execute(InputInterface $input)
155155
StaticChecksList::getErrorFilesPath() . DIRECTORY_SEPARATOR . self::ERROR_LOG_FILENAME . '.txt',
156156
self::ERROR_LOG_MESSAGE
157157
);
158-
if (!empty($this->warnings) && !empty($this->errors) ) {
158+
if (!empty($this->warnings) && !empty($this->errors)) {
159159
$this->output .= "\n " . $this->scriptUtil->printWarningsToFile(
160160
$this->warnings,
161161
StaticChecksList::getErrorFilesPath() . DIRECTORY_SEPARATOR . self::WARNING_LOG_FILENAME . '.txt',

0 commit comments

Comments
 (0)