Skip to content

Commit 4cf3d71

Browse files
committed
PB-370: Introduce upgrade mechanism for Page Builder content
1 parent 8539ac4 commit 4cf3d71

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

dev/tests/integration/testsuite/Magento/PageBuilder/Model/Dom/ElementTest.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,6 @@
1313
use Magento\PageBuilder\Model\Dom\HtmlDocument;
1414
use PHPUnit\Framework\TestCase;
1515

16-
/**
17-
* @SuppressWarnings(PHPCS.Magento2.Files.LineLength.MaxExceeded)
18-
*/
1916
class ElementTest extends TestCase
2017
{
2118
/**
@@ -52,6 +49,7 @@ public function testRemoveStyle(string $elementData, string $styleProperty, stri
5249

5350
public function removeStylesDataProvider()
5451
{
52+
// phpcs:disable Generic.Files.LineLength.TooLong
5553
return [
5654
[
5755
'<div data-element="inner" style="border-style: none; border-width: 1px; border-radius: 0px; margin: 0px 0px 10px; padding: 10px;">',
@@ -69,6 +67,7 @@ public function removeStylesDataProvider()
6967
'',
7068
],
7169
];
70+
// phpcs:enable Generic.Files.LineLength.TooLong
7271
}
7372

7473
/**
@@ -93,6 +92,7 @@ public function testAddStyle(string $elementData, string $styleProperty, string
9392

9493
public function addStyleDataProvider()
9594
{
95+
// phpcs:disable Generic.Files.LineLength.TooLong
9696
return [
9797
[
9898
'<div data-element="inner" style="border-style: none; border-width: 1px; border-radius: 0px; padding: 10px;">',
@@ -113,5 +113,6 @@ public function addStyleDataProvider()
113113
'margin: 10px; ',
114114
],
115115
];
116+
// phpcs:enable Generic.Files.LineLength.TooLong
116117
}
117118
}

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

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,6 @@
1010

1111
use Magento\Framework\ObjectManagerInterface;
1212

13-
/**
14-
* @SuppressWarnings(PHPCS.Magento2.Files.LineLength.MaxExceeded)
15-
*/
1613
class FixFullWidthRowPaddingTest extends \PHPUnit\Framework\TestCase
1714
{
1815
/**
@@ -40,6 +37,7 @@ public function testConvert(string $htmlString, string $expectedResult)
4037
*/
4138
public function conversionData(): array
4239
{
40+
// phpcs:disable Generic.Files.LineLength.TooLong
4341
return [
4442
// one contained row, one full-width row
4543
[
@@ -84,5 +82,6 @@ public function conversionData(): array
8482
. '<div data-content-type="row" data-appearance="full-width" data-enable-parallax="0" data-parallax-speed="0.5" data-background-images="{}" data-element="main" style="justify-content: flex-start; display: flex; flex-direction: column; background-position: left top; background-size: cover; background-repeat: no-repeat; background-attachment: scroll; border-style: none; border-width: 1px; border-radius: 0px; margin: 0px 0px 10px; "><div class="row-full-width-inner" data-element="inner" style="padding: 40px; "><div data-content-type="buttons" data-appearance="inline" data-same-width="false" data-element="main" style="border-style: none; border-width: 1px; border-radius: 0px; margin: 0px; padding: 10px 10px 0px;"><div data-content-type="button-item" data-appearance="default" data-element="main" style="display: inline-block;"><div class="pagebuilder-button-primary" data-element="empty_link" style="text-align: center;"><span data-element="link_text">full width</span></div></div></div></div></div>'
8583
]
8684
];
85+
// phpcs:enable Generic.Files.LineLength.TooLong
8786
}
8887
}

0 commit comments

Comments
 (0)