Skip to content

Commit c276ff0

Browse files
committed
Integration test fixes
1 parent 2228645 commit c276ff0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

dev/tests/integration/testsuite/Magento/PageBuilder/Setup/Converters/PageBuilderStripStylesTest.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,9 @@ public function testConvert(string $htmlString, int $expectedStyleTags)
6666
$styleAttr = $node->getAttribute('style');
6767

6868
if ($styleAttr) {
69-
$getInternalStyles = $xpathAfter->query('//body/style[last()]')->item(0)->textContent;
69+
if($xpathAfter->query('//body/style[last()]')->item(0)){
70+
$getInternalStyles = $xpathAfter->query('//body/style[last()]')->item(0)->textContent;
71+
}
7072
$styleRules[] = $styleAttr;
7173
}
7274
}

0 commit comments

Comments
 (0)