Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/code/Magento/CatalogWidget/etc/widget.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<parameter name="template" xsi:type="select" required="true" visible="true">
<label translate="true">Template</label>
<options>
<option name="default" value="product/widget/content/grid.phtml" selected="true">
<option name="default" value="Magento_CatalogWidget::product/widget/content/grid.phtml" selected="true">
<label translate="true">Products Grid Template</label>
</option>
</options>
Expand Down
9 changes: 6 additions & 3 deletions app/code/Magento/Widget/Test/Unit/Model/WidgetTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public function testGetWidgetDeclaration()
'show_pager' => '1',
'products_per_page' => '5',
'products_count' => '10',
'template' => 'product/widget/content/grid.phtml',
'template' => 'Magento_CatalogWidget::product/widget/content/grid.phtml',
'conditions' => $conditions
];

Expand All @@ -187,7 +187,10 @@ public function testGetWidgetDeclaration()
['1', false, '1'],
['5', false, '5'],
['10', false, '10'],
['product/widget/content/grid.phtml', false, 'product/widget/content/grid.phtml'],
['Magento_CatalogWidget::product/widget/content/grid.phtml',
false,
'Magento_CatalogWidget::product/widget/content/grid.phtml'
],
['encoded-conditions-string', false, 'encoded-conditions-string'],
]);

Expand Down Expand Up @@ -225,7 +228,7 @@ public function testGetWidgetDeclarationWithZeroValueParam()
'show_pager' => '1',
'products_per_page' => '5',
'products_count' => '0',
'template' => 'product/widget/content/grid.phtml',
'template' => 'Magento_CatalogWidget::product/widget/content/grid.phtml',
'conditions' => $conditions
];

Expand Down