Skip to content

Commit d30fea0

Browse files
fix webapi test
1 parent 287084c commit d30fea0

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

dev/tests/api-functional/testsuite/Magento/Catalog/Api/SpecialPriceStorageTest.php

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,6 @@ public function testUpdate(array $data)
141141
*/
142142
public function testDeleteWhenPriceIsGlobal(): void
143143
{
144-
$fromDate = '2037-01-19 03:14:07';
145-
146144
$serviceInfo = [
147145
'rest' => [
148146
'resourcePath' => '/V1/products/special-price-delete',
@@ -159,7 +157,13 @@ public function testDeleteWhenPriceIsGlobal(): void
159157
$serviceInfo,
160158
[
161159
'prices' => [
162-
['price' => 777, 'store_id' => 1, 'sku' => self::SIMPLE_PRODUCT_SKU, 'price_from' => $fromDate]
160+
[
161+
'price' => 777,
162+
'store_id' => 1,
163+
'sku' => self::SIMPLE_PRODUCT_SKU,
164+
'price_from' => '2037-01-19 03:14:07',
165+
'price_to' => '2038-01-19 03:14:07'
166+
]
163167
]
164168
]
165169
);

0 commit comments

Comments
 (0)