File tree Expand file tree Collapse file tree 2 files changed +9
-5
lines changed
src/Magento/FunctionalTestingFramework Expand file tree Collapse file tree 2 files changed +9
-5
lines changed Original file line number Diff line number Diff line change @@ -198,11 +198,9 @@ public function testEnd()
198
198
199
199
$ actionGroupStepKey = null ;
200
200
foreach ($ rootStep ->getSteps () as $ step ) {
201
- if ($ actionGroupStepKey !== null ) {
202
- $ stepKey = str_replace ($ actionGroupStepKey , '' , $ step ->getName ());
203
- if ($ stepKey !== '[] ' && $ stepKey !== null ) {
204
- $ step ->setName ($ stepKey );
205
- }
201
+ $ stepKey = str_replace ($ actionGroupStepKey , '' , $ step ->getName ());
202
+ if ($ stepKey !== '[] ' && $ stepKey !== null ) {
203
+ $ step ->setName ($ stepKey );
206
204
}
207
205
// if actionGroup flag, start nesting
208
206
if (strpos ($ step ->getName (), ActionGroupObject::ACTION_GROUP_CONTEXT_START ) !== false ) {
Original file line number Diff line number Diff line change 1
1
<?php
2
+ /**
3
+ * Copyright © Magento, Inc. All rights reserved.
4
+ * See COPYING.txt for license details.
5
+ */
6
+
2
7
namespace Magento \FunctionalTestingFramework \Codeception \Subscriber ;
3
8
4
9
use Codeception \Event \StepEvent ;
@@ -68,6 +73,7 @@ public function afterStep(StepEvent $e)
68
73
*
69
74
* @param Step $step
70
75
* @return void
76
+ * @SuppressWarnings(PHPMD)
71
77
*/
72
78
private function printStepKeys (Step $ step )
73
79
{
You can’t perform that action at this time.
0 commit comments