Skip to content

Commit 8f843ef

Browse files
fix webapi test
1 parent de30e9c commit 8f843ef

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ class SpecialPriceStorageTest extends WebapiAbstract
2121
const SERVICE_VERSION = 'V1';
2222
const SIMPLE_PRODUCT_SKU = 'simple';
2323
const VIRTUAL_PRODUCT_SKU = 'virtual-product';
24+
private const PRODUCT_SKU_TWO_WEBSITES = 'simple-on-two-websites';
2425

2526
/**
2627
* @var ObjectManager
@@ -167,7 +168,7 @@ public function testDeleteWhenPriceIsGlobal(): void
167168
/**
168169
* Test delete method.
169170
*
170-
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
171+
* @magentoApiDataFixture Magento/Catalog/_files/product_two_websites.php
171172
* @magentoConfigFixture catalog/price/scope 1
172173
* @dataProvider deleteData
173174
* @param array $data
@@ -269,7 +270,7 @@ public function deleteData(): array
269270
[
270271
'price' => 3057,
271272
'store_id' => 0,
272-
'sku' => self::SIMPLE_PRODUCT_SKU,
273+
'sku' => self::PRODUCT_SKU_TWO_WEBSITES,
273274
'price_from' => $fromDate,
274275
'price_to' => $toDate
275276
]
@@ -278,7 +279,7 @@ public function deleteData(): array
278279
[
279280
'price' => 3057,
280281
'store_id' => 0,
281-
'sku' => self::SIMPLE_PRODUCT_SKU,
282+
'sku' => self::PRODUCT_SKU_TWO_WEBSITES,
282283
'price_from' => $fromDate,
283284
'price_to' => false
284285
]

0 commit comments

Comments
 (0)