Skip to content

Commit ee5d3f7

Browse files
authored
Merge pull request #309 from magento/MQE-1447
MQE-1447: Remove notice on empty page module
2 parents 7f82e4d + e28d1c5 commit ee5d3f7

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
@@ -57,14 +57,14 @@ private function __construct()
5757
if (preg_match('/[^a-zA-Z0-9_]/', $pageName)) {
5858
throw new XmlException(sprintf(self::NAME_BLACKLIST_ERROR_MSG, $pageName));
5959
}
60-
$area = $pageData[self::AREA];
61-
$url = $pageData[self::URL];
60+
$area = $pageData[self::AREA] ?? null;
61+
$url = $pageData[self::URL] ?? null;
6262

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

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

0 commit comments

Comments
 (0)