Magento 2 Documentation  2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
ActionMergeUtilTest.php
Go to the documentation of this file.
1 <?php
8 
12 
14 {
20  public function testMergeActionsException()
21  {
22  $testActionMergeUtil = new ActionMergeUtil(null, null);
23 
24  $actionObject = new ActionObject('fakeAction', 'comment', [
25  'userInput' => '{{someEntity.entity}}'
26  ]);
27 
28  $this->expectExceptionMessage("Could not resolve entity reference \"{{someEntity.entity}}\" " .
29  "in Action with stepKey \"fakeAction\".\n" .
30  "Exception occurred parsing action at StepKey \"fakeAction\"");
31 
32  $testActionMergeUtil->resolveActionSteps(["merge123" => $actionObject]);
33  }
34 }