Skip to content

Commit c0202a3

Browse files
committed
MTA-1284: Implement mechanism of cleaning up all data after scenario execution
- CR Changes
1 parent fae992b commit c0202a3

File tree

2 files changed

+8
-5
lines changed

2 files changed

+8
-5
lines changed

CHANGELOG.md

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
* Added mechanism of cleaning up all data after scenario execution
2+
13
1.0.0-rc.23
24
=============
35
* Added an ability to merge form mapping from different modules

Magento/Mtf/TestCase/Scenario.php

+6-5
Original file line numberDiff line numberDiff line change
@@ -71,17 +71,18 @@ protected function executeScenario()
7171
}
7272

7373
/**
74-
* Executed steps cleanup after test.
74+
* Run with Variations Iterator
7575
*
76-
* @return mixed
76+
* @param \PHPUnit_Framework_TestResult $result
77+
* @return \PHPUnit_Framework_TestResult
7778
*/
78-
protected function runTest()
79+
public function run(\PHPUnit_Framework_TestResult $result = null)
7980
{
80-
$testResult = parent::runTest();
81+
$result = parent::run($result);
8182

8283
$this->runStepsCleanup();
8384

84-
return $testResult;
85+
return $result;
8586
}
8687

8788
/**

0 commit comments

Comments
 (0)