Skip to content

Commit a5afd2b

Browse files
committed
MQE-1447: Remove notice on empty page module
- Added ternary null checing for page.xml attributes
1 parent 9b7d464 commit a5afd2b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/Magento/FunctionalTestingFramework/Page/Handlers/PageObjectHandler.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ private function __construct()
5656
if (preg_match('/[^a-zA-Z0-9_]/', $pageName)) {
5757
throw new XmlException(sprintf(self::NAME_BLACKLIST_ERROR_MSG, $pageName));
5858
}
59-
$area = $pageData[self::AREA];
60-
$url = $pageData[self::URL];
59+
$area = $pageData[self::AREA] ?? null;
60+
$url = $pageData[self::URL] ?? null;
6161

6262
if ($area == 'admin') {
6363
$url = ltrim($url, "/");
6464
}
6565

66-
$module = $pageData[self::MODULE];
66+
$module = $pageData[self::MODULE] ?? null;
6767
$sectionNames = array_keys($pageData[self::SECTION] ?? []);
6868
$parameterized = $pageData[self::PARAMETERIZED] ?? false;
6969

0 commit comments

Comments
 (0)