@@ -192,7 +192,7 @@ private function getResolvedActionsWithArgs($arguments, $actionReferenceKey)
192
192
);
193
193
}
194
194
195
- $ resolvedActions = $ this ->addContextCommentsToActionList ($ resolvedActions );
195
+ $ resolvedActions = $ this ->addContextCommentsToActionList ($ resolvedActions, $ actionReferenceKey );
196
196
197
197
return $ resolvedActions ;
198
198
}
@@ -491,17 +491,18 @@ private function replaceCreateDataKeys($action, $replacementStepKeys)
491
491
* @param array $actionList
492
492
* @return array
493
493
*/
494
- private function addContextCommentsToActionList ($ actionList )
494
+ private function addContextCommentsToActionList ($ actionList, $ actionReferenceKey )
495
495
{
496
+ $ actionStartComment = self ::ACTION_GROUP_CONTEXT_START . $ this ->name . " ( " . $ actionReferenceKey . ") " ;
496
497
$ startAction = new ActionObject (
497
- self :: ACTION_GROUP_CONTEXT_START . $ this -> name ,
498
+ $ actionStartComment ,
498
499
ActionObject::ACTION_TYPE_COMMENT ,
499
- [ActionObject::ACTION_ATTRIBUTE_USERINPUT => self :: ACTION_GROUP_CONTEXT_START . $ this -> name ]
500
+ [ActionObject::ACTION_ATTRIBUTE_USERINPUT => $ actionStartComment ]
500
501
);
501
502
$ endAction = new ActionObject (
502
- self ::ACTION_GROUP_CONTEXT_END ,
503
+ self ::ACTION_GROUP_CONTEXT_END . $ this -> name ,
503
504
ActionObject::ACTION_TYPE_COMMENT ,
504
- [ActionObject::ACTION_ATTRIBUTE_USERINPUT => self ::ACTION_GROUP_CONTEXT_END ]
505
+ [ActionObject::ACTION_ATTRIBUTE_USERINPUT => self ::ACTION_GROUP_CONTEXT_END . $ this -> name ]
505
506
);
506
507
return [$ startAction ->getStepKey () => $ startAction ] + $ actionList + [$ endAction ->getStepKey () => $ endAction ];
507
508
}
0 commit comments