Skip to content

Commit ee2c713

Browse files
magento2/magento2-page-builder#637: Form field/field group viewport scope
- fix static tests
1 parent 69ba9cc commit ee2c713

File tree

5 files changed

+11
-1
lines changed

5 files changed

+11
-1
lines changed

app/code/Magento/PageBuilder/Component/Form/Element/Wysiwyg.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ class Wysiwyg extends \Magento\Ui\Component\Form\Element\Wysiwyg
4545
* @param array $config
4646
* @param PageBuilderConfig|null $pageBuilderConfig
4747
* @param bool $overrideSnapshot
48-
* @param ViewConfigInterface $viewConfig
4948
* @param Repository $assetRepo
5049
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
5150
* @SuppressWarnings(PHPMD.ExcessiveParameterList)

app/code/Magento/PageBuilder/Model/Config/ContentType/Converter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ public function convert($source): array
5252
*
5353
* @param \DOMDocument $source
5454
* @return array
55+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
5556
*/
5657
private function convertTypes(\DOMDocument $source): array
5758
{

app/code/Magento/PageBuilder/Model/Stage/Config.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,6 +314,8 @@ private function getCachedFlattenContentTypeData(string $name, array $contentTyp
314314
* @param array $contentType
315315
*
316316
* @return array
317+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
318+
* @SuppressWarnings(PHPMD.NPathComplexity)
317319
*/
318320
private function flattenContentTypeData(string $name, array $contentType)
319321
{

app/code/Magento/PageBuilder/Model/Stage/Config/UiComponentConfig.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@ public function __construct(
3838
* @param string|null $breakpoint
3939
*
4040
* @return array
41+
* @SuppressWarnings(PHPMD.CyclomaticComplexity)
4142
*/
4243
public function getFields($componentName, $breakpoint = null) : array
4344
{

dev/tests/static/testsuite/Magento/Test/Integrity/Xml/ExtendsBaseFormTest.php

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ private function getXmlFiles(): array
7070
'pagebuilder_row_form.xml' => 'pagebuilder_base_form_with_background_video',
7171
'pagebuilder_slide_form.xml' => 'pagebuilder_base_form_with_background_video',
7272
'pagebuilder_products_carousel_form.xml' => 'pagebuilder_products_form',
73+
'pagebuilder_slide_mobile_form.xml' => 'pagebuilder_base_form_with_background_video',
74+
'pagebuilder_tab_item_mobile_form.xml' => 'pagebuilder_base_form_with_background_attributes',
75+
'pagebuilder_banner_mobile_form.xml' => 'pagebuilder_base_form_with_background_video',
76+
'pagebuilder_column_mobile_form.xml' => 'pagebuilder_base_form_with_background_attributes',
77+
'pagebuilder_row_mobile_form.xml' => 'pagebuilder_base_form_with_background_video',
78+
'pagebuilder_slider_mobile_form.xml' => 'pagebuilder_slider_form',
79+
'pagebuilder_tabs_mobile_form.xml' => 'pagebuilder_tabs_form',
7380
];
7481
$componentRegistrar = new ComponentRegistrar();
7582
$modulePath = $componentRegistrar->getPath(ComponentRegistrar::MODULE, 'Magento_PageBuilder');

0 commit comments

Comments
 (0)