|
8 | 8 |
|
9 | 9 | use AspectMock\Test as AspectMock;
|
10 | 10 |
|
11 |
| -use Go\Aop\Aspect; |
12 | 11 | use Magento\FunctionalTestingFramework\ObjectManager;
|
13 | 12 | use Magento\FunctionalTestingFramework\ObjectManagerFactory;
|
14 | 13 | use Magento\FunctionalTestingFramework\Test\Handlers\CestObjectHandler;
|
@@ -72,33 +71,34 @@ class CestObjectHandlerTest extends TestCase
|
72 | 71 | public function testGetCestObject()
|
73 | 72 | {
|
74 | 73 | // set up mock data
|
75 |
| - $mockData = [CestObjectExtractor::CEST_ROOT => [ |
76 |
| - $this->testCestName => [ |
77 |
| - CestObjectExtractor::NAME => $this->testCestName, |
78 |
| - CestObjectExtractor::CEST_BEFORE_HOOK => [ |
79 |
| - $this->testActionBeforeName => [ |
80 |
| - ActionObjectExtractor::NODE_NAME => $this->testActionType, |
81 |
| - ActionObjectExtractor::TEST_STEP_MERGE_KEY => $this->testActionBeforeName |
82 |
| - ] |
83 |
| - ], |
84 |
| - CestObjectExtractor::CEST_AFTER_HOOK => [ |
85 |
| - $this->testActionAfterName => [ |
86 |
| - ActionObjectExtractor::NODE_NAME => $this->testActionType, |
87 |
| - ActionObjectExtractor::TEST_STEP_MERGE_KEY => $this->testActionAfterName |
| 74 | + $mockData = [ |
| 75 | + CestObjectExtractor::CEST_ROOT => [ |
| 76 | + $this->testCestName => [ |
| 77 | + CestObjectExtractor::NAME => $this->testCestName, |
| 78 | + CestObjectExtractor::CEST_BEFORE_HOOK => [ |
| 79 | + $this->testActionBeforeName => [ |
| 80 | + ActionObjectExtractor::NODE_NAME => $this->testActionType, |
| 81 | + ActionObjectExtractor::TEST_STEP_MERGE_KEY => $this->testActionBeforeName |
| 82 | + ] |
| 83 | + ], |
| 84 | + CestObjectExtractor::CEST_AFTER_HOOK => [ |
| 85 | + $this->testActionAfterName => [ |
| 86 | + ActionObjectExtractor::NODE_NAME => $this->testActionType, |
| 87 | + ActionObjectExtractor::TEST_STEP_MERGE_KEY => $this->testActionAfterName |
88 | 88 |
|
89 |
| - ] |
90 |
| - ], |
91 |
| - CestObjectExtractor::CEST_ANNOTATIONS => [ |
92 |
| - 'group' => [['value' => 'test']] |
93 |
| - ], |
94 |
| - $this->testTestName => [ |
95 |
| - $this->testTestActionName => [ |
96 |
| - ActionObjectExtractor::NODE_NAME => $this->testActionType, |
97 |
| - ActionObjectExtractor::TEST_STEP_MERGE_KEY => $this->testTestActionName |
| 89 | + ] |
| 90 | + ], |
| 91 | + CestObjectExtractor::CEST_ANNOTATIONS => [ |
| 92 | + 'group' => [['value' => 'test']] |
98 | 93 | ],
|
| 94 | + $this->testTestName => [ |
| 95 | + $this->testTestActionName => [ |
| 96 | + ActionObjectExtractor::NODE_NAME => $this->testActionType, |
| 97 | + ActionObjectExtractor::TEST_STEP_MERGE_KEY => $this->testTestActionName |
| 98 | + ], |
| 99 | + ] |
99 | 100 | ]
|
100 | 101 | ]
|
101 |
| - ] |
102 | 102 | ];
|
103 | 103 |
|
104 | 104 | $this->setMockParserOutput($mockData);
|
@@ -149,38 +149,40 @@ public function testGetCestObject()
|
149 | 149 | public function testGetCestsByGroup()
|
150 | 150 | {
|
151 | 151 | // set up mock data
|
152 |
| - $mockData = [CestObjectExtractor::CEST_ROOT => [ |
153 |
| - $this->testCestName => [ |
154 |
| - CestObjectExtractor::NAME => $this->testCestName, |
155 |
| - CestObjectExtractor::CEST_ANNOTATIONS => [ |
156 |
| - 'group' => [['value' => 'test']] |
157 |
| - ], |
158 |
| - $this->testTestName => [ |
159 |
| - $this->testTestActionName => [ |
160 |
| - ActionObjectExtractor::NODE_NAME => $this->testActionType, |
161 |
| - ActionObjectExtractor::TEST_STEP_MERGE_KEY => $this->testTestActionName |
162 |
| - ], |
163 |
| - ] |
164 |
| - ], |
165 |
| - $this->testCestName . '2' => [ |
166 |
| - CestObjectExtractor::NAME => $this->testCestName . '2', |
167 |
| - $this->testTestName . 'Include' => [ |
168 |
| - TestObjectExtractor::TEST_ANNOTATIONS => [ |
| 152 | + $mockData = [ |
| 153 | + CestObjectExtractor::CEST_ROOT => [ |
| 154 | + $this->testCestName => [ |
| 155 | + CestObjectExtractor::NAME => $this->testCestName, |
| 156 | + CestObjectExtractor::CEST_ANNOTATIONS => [ |
169 | 157 | 'group' => [['value' => 'test']]
|
170 | 158 | ],
|
171 |
| - $this->testTestActionName => [ |
172 |
| - ActionObjectExtractor::NODE_NAME => $this->testActionType, |
173 |
| - ActionObjectExtractor::TEST_STEP_MERGE_KEY => $this->testTestActionName |
174 |
| - ], |
| 159 | + $this->testTestName => [ |
| 160 | + $this->testTestActionName => [ |
| 161 | + ActionObjectExtractor::NODE_NAME => $this->testActionType, |
| 162 | + ActionObjectExtractor::TEST_STEP_MERGE_KEY => $this->testTestActionName |
| 163 | + ], |
| 164 | + ] |
175 | 165 | ],
|
176 |
| - $this->testTestName . 'Exclude' => [ |
177 |
| - $this->testTestActionName => [ |
178 |
| - ActionObjectExtractor::NODE_NAME => $this->testActionType, |
179 |
| - ActionObjectExtractor::TEST_STEP_MERGE_KEY => $this->testTestActionName |
| 166 | + $this->testCestName . '2' => [ |
| 167 | + CestObjectExtractor::NAME => $this->testCestName . '2', |
| 168 | + $this->testTestName . 'Include' => [ |
| 169 | + TestObjectExtractor::TEST_ANNOTATIONS => [ |
| 170 | + 'group' => [['value' => 'test']] |
| 171 | + ], |
| 172 | + $this->testTestActionName => [ |
| 173 | + ActionObjectExtractor::NODE_NAME => $this->testActionType, |
| 174 | + ActionObjectExtractor::TEST_STEP_MERGE_KEY => $this->testTestActionName |
| 175 | + ], |
180 | 176 | ],
|
| 177 | + $this->testTestName . 'Exclude' => [ |
| 178 | + $this->testTestActionName => [ |
| 179 | + ActionObjectExtractor::NODE_NAME => $this->testActionType, |
| 180 | + ActionObjectExtractor::TEST_STEP_MERGE_KEY => $this->testTestActionName |
| 181 | + ], |
| 182 | + ] |
181 | 183 | ]
|
182 | 184 | ]
|
183 |
| - ]]; |
| 185 | + ]; |
184 | 186 |
|
185 | 187 | $this->setMockParserOutput($mockData);
|
186 | 188 |
|
|
0 commit comments