We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7f82e4d + e28d1c5 commit ee5d3f7Copy full SHA for ee5d3f7
src/Magento/FunctionalTestingFramework/Page/Handlers/PageObjectHandler.php
@@ -57,14 +57,14 @@ private function __construct()
57
if (preg_match('/[^a-zA-Z0-9_]/', $pageName)) {
58
throw new XmlException(sprintf(self::NAME_BLACKLIST_ERROR_MSG, $pageName));
59
}
60
- $area = $pageData[self::AREA];
61
- $url = $pageData[self::URL];
+ $area = $pageData[self::AREA] ?? null;
+ $url = $pageData[self::URL] ?? null;
62
63
if ($area == 'admin') {
64
$url = ltrim($url, "/");
65
66
67
- $module = $pageData[self::MODULE];
+ $module = $pageData[self::MODULE] ?? null;
68
$sectionNames = array_keys($pageData[self::SECTION] ?? []);
69
$parameterized = $pageData[self::PARAMETERIZED] ?? false;
70
$filename = $pageData[self::FILENAME] ?? null;
0 commit comments