From d30fea04920b2101425ac4accd63d6cdab3b44e3 Mon Sep 17 00:00:00 2001 From: Vadim Malesh <51680850+engcom-Charlie@users.noreply.github.com> Date: Mon, 4 Jan 2021 20:43:19 +0200 Subject: [PATCH] fix webapi test --- .../Magento/Catalog/Api/SpecialPriceStorageTest.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/dev/tests/api-functional/testsuite/Magento/Catalog/Api/SpecialPriceStorageTest.php b/dev/tests/api-functional/testsuite/Magento/Catalog/Api/SpecialPriceStorageTest.php index a8685a20309eb..da40c9ee01c82 100644 --- a/dev/tests/api-functional/testsuite/Magento/Catalog/Api/SpecialPriceStorageTest.php +++ b/dev/tests/api-functional/testsuite/Magento/Catalog/Api/SpecialPriceStorageTest.php @@ -141,8 +141,6 @@ public function testUpdate(array $data) */ public function testDeleteWhenPriceIsGlobal(): void { - $fromDate = '2037-01-19 03:14:07'; - $serviceInfo = [ 'rest' => [ 'resourcePath' => '/V1/products/special-price-delete', @@ -159,7 +157,13 @@ public function testDeleteWhenPriceIsGlobal(): void $serviceInfo, [ 'prices' => [ - ['price' => 777, 'store_id' => 1, 'sku' => self::SIMPLE_PRODUCT_SKU, 'price_from' => $fromDate] + [ + 'price' => 777, + 'store_id' => 1, + 'sku' => self::SIMPLE_PRODUCT_SKU, + 'price_from' => '2037-01-19 03:14:07', + 'price_to' => '2038-01-19 03:14:07' + ] ] ] );