Skip to content
This repository was archived by the owner on Apr 29, 2019. It is now read-only.

Commit 7f2dc29

Browse files
[2.3-develop] Forwardport of magento/magento2#12133
1 parent 595527a commit 7f2dc29

File tree

2 files changed

+18
-0
lines changed

2 files changed

+18
-0
lines changed

dev/tests/functional/tests/app/Magento/Catalog/Test/Repository/CatalogProductAttribute/Options.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,12 @@
2222
<item name="admin" xsi:type="string">white</item>
2323
</field>
2424
</dataset>
25+
26+
<dataset name="option_with_single_quotation">
27+
<field name="0" xsi:type="array">
28+
<item name="is_default" xsi:type="string">Yes</item>
29+
<item name="admin" xsi:type="string">test option with single\&apos;</item>
30+
</field>
31+
</dataset>
2532
</repository>
2633
</config>

dev/tests/functional/tests/app/Magento/Catalog/Test/TestCase/ProductAttribute/CreateProductAttributeEntityTest.xml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,5 +208,16 @@
208208
<data name="productAttribute/data/is_comparable" xsi:type="string">Yes</data>
209209
<constraint name="Magento\Catalog\Test\Constraint\AssertProductAttributeIsUnique" />
210210
</variation>
211+
<variation name="CreateProductAttributeEntityTestVariation10" summary="Create custom dropdown attribute with single quotation in option">
212+
<data name="attributeSet/dataset" xsi:type="string">custom_attribute_set</data>
213+
<data name="productAttribute/data/frontend_label" xsi:type="string">Dropdown_Admin_%isolation%</data>
214+
<data name="productAttribute/data/frontend_input" xsi:type="string">Dropdown</data>
215+
<data name="productAttribute/data/options/dataset" xsi:type="string">option_with_single_quotation</data>
216+
<data name="productAttribute/data/is_required" xsi:type="string">Yes</data>
217+
<data name="productAttribute/data/attribute_code" xsi:type="string">attr_dropdown_%isolation%</data>
218+
<data name="productAttribute/data/is_global" xsi:type="string">Global</data>
219+
<data name="productAttribute/data/is_unique" xsi:type="string">No</data>
220+
<constraint name="Magento\Catalog\Test\Constraint\AssertAttributeForm" />
221+
</variation>
211222
</testCase>
212223
</config>

0 commit comments

Comments
 (0)