File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
dev/tests/unit/Magento/FunctionalTestFramework/Test/Objects Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -233,6 +233,8 @@ public function testResolveUrl()
233
233
*/
234
234
public function testResolveUrlWithNoAttribute ()
235
235
{
236
+ $ this ->expectException (TestReferenceException::class);
237
+
236
238
// Set up mocks
237
239
$ actionObject = new ActionObject ('merge123 ' , 'amOnPage ' , [
238
240
'url ' => '{{PageObject}} '
@@ -247,19 +249,6 @@ public function testResolveUrlWithNoAttribute()
247
249
248
250
// Call the method under test
249
251
$ actionObject ->resolveReferences ();
250
-
251
- // Expect this warning to get generated
252
- TestLoggingUtil::getInstance ()->validateMockLogStatement (
253
- "warning " ,
254
- "page url attribute not found and is required " ,
255
- ['action ' => $ actionObject ->getType (), 'url ' => '{{PageObject}} ' , 'stepKey ' => $ actionObject ->getStepKey ()]
256
- );
257
-
258
- // Verify
259
- $ expected = [
260
- 'url ' => '{{PageObject}} '
261
- ];
262
- $ this ->assertEquals ($ expected , $ actionObject ->getCustomActionAttributes ());
263
252
}
264
253
265
254
/**
You can’t perform that action at this time.
0 commit comments