Skip to content

Commit 18f3416

Browse files
committed
Merge remote-tracking branch 'origin/MC-40277' into 2.4-develop-pr118
2 parents d224147 + 0292cb2 commit 18f3416

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

app/code/Magento/Catalog/Test/Mftf/Test/CreateProductAttributeEntityTest/CreateProductAttributeEntityDateTest.xml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<title value="Admin should be able to create a Date product attribute"/>
1515
<description value="Admin should be able to create a Date product attribute"/>
1616
<severity value="BLOCKER"/>
17-
<testCaseId value="MC-10895"/>
18-
<group value="Catalog"/>
17+
<testCaseId value="MC-26021"/>
18+
<group value="catalog"/>
1919
<group value="mtf_migrated"/>
2020
</annotations>
2121

@@ -34,7 +34,7 @@
3434

3535
<!--Generate date for use as default value, needs to be MM/d/YYYY and mm/d/yy-->
3636
<generateDate date="now" format="m/j/Y" stepKey="generateDefaultDate"/>
37-
<generateDate date="now" format="m/j/y" stepKey="generateDateCompressedFormat"/>
37+
<generateDate date="now" format="n/j/y" stepKey="generateDateCompressedFormat"/>
3838

3939
<!--Navigate to Stores > Attributes > Product.-->
4040
<actionGroup ref="AdminOpenProductAttributePageActionGroup" stepKey="goToProductAttributes"/>

dev/tests/integration/testsuite/Magento/Catalog/Block/Product/View/Options/Type/DateTest.php

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020

2121
/**
2222
* @magentoDataFixture Magento/Catalog/_files/product_simple.php
23+
* @SuppressWarnings(PHPMD.CouplingBetweenObjects)
2324
*/
2425
class DateTest extends TestCase
2526
{
@@ -96,9 +97,10 @@ protected function tearDown(): void
9697
}
9798

9899
/**
99-
* @magentoAppArea frontend
100100
* @param array $data
101101
* @param array $expected
102+
* @magentoAppArea frontend
103+
* @magentoConfigFixture current_store catalog/custom_options/year_range 2020,2030
102104
* @dataProvider toHtmlWithDropDownDataProvider
103105
*/
104106
public function testToHtmlWithDropDown(array $data, array $expected): void
@@ -108,11 +110,12 @@ public function testToHtmlWithDropDown(array $data, array $expected): void
108110
}
109111

110112
/**
111-
* @magentoAppArea frontend
112-
* @magentoConfigFixture current_store catalog/custom_options/use_calendar 1
113113
* @param array $data
114114
* @param array $expected
115115
* @param string|null $locale
116+
* @magentoAppArea frontend
117+
* @magentoConfigFixture current_store catalog/custom_options/use_calendar 1
118+
* @magentoConfigFixture current_store catalog/custom_options/year_range 2020,2030
116119
* @dataProvider toHtmlWithCalendarDataProvider
117120
*/
118121
public function testToHtmlWithCalendar(array $data, array $expected, ?string $locale = null): void

0 commit comments

Comments
 (0)