Skip to content

Commit cb01908

Browse files
Manjusha.SManjusha.S
authored andcommitted
MQE-2021 : Added new attribute unique
1 parent 9c7b1ea commit cb01908

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/Magento/FunctionalTestingFramework/Util/TestGenerator.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1808,7 +1808,7 @@ private function generateHooksPhp($hookObjects)
18081808
$hooks .= $steps;
18091809
if ($type === 'after') {
18101810
$hooks .= "\t\t" . 'if ($this->isSuccess) {' . "\n";
1811-
// $hooks .= "\t\t\t" . 'unlink(__FILE__);' . "\n";
1811+
$hooks .= "\t\t\t" . 'unlink(__FILE__);' . "\n";
18121812
$hooks .= "\t\t" . '}' . "\n";
18131813
}
18141814
$hooks .= "\t}\n\n";
@@ -1848,7 +1848,7 @@ private function generateTestPhp($test)
18481848
} else {
18491849
$skipString .= "No issues have been specified.";
18501850
}
1851-
// $steps = "\t\t" . 'unlink(__FILE__);' . "\n";
1851+
$steps = "\t\t" . 'unlink(__FILE__);' . "\n";
18521852
$steps .= "\t\t" . '$scenario->skip("' . $skipString . '");' . "\n";
18531853
$dependencies .= ', \Codeception\Scenario $scenario';
18541854
}
@@ -1868,8 +1868,6 @@ private function generateTestPhp($test)
18681868
$testPhp .= "\t}\n";
18691869
}
18701870

1871-
echo $testPhp;
1872-
exit;
18731871
return $testPhp;
18741872
}
18751873

0 commit comments

Comments
 (0)