Skip to content

Commit 022d7bf

Browse files
committed
Test adjustment
1 parent d5c4191 commit 022d7bf

File tree

3 files changed

+6
-78
lines changed

3 files changed

+6
-78
lines changed

dev/tests/api-functional/testsuite/Magento/GraphQl/CatalogCustomer/PriceTiersTest.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ public function testGetLowestPriceForGuest()
118118
}
119119

120120
/**
121-
* @magentoApiDataFixture Magento/Catalog/_files/simple_product_without_tier_price.php
121+
* @magentoApiDataFixture Magento/Catalog/_files/second_product_simple.php
122122
* @magentoApiDataFixture Magento/Catalog/_files/three_simple_products_with_tier_price.php
123123
*/
124124
public function testGetCorrectDisplaingTierPriceForProducts()
@@ -141,12 +141,13 @@ public function testGetCorrectDisplaingTierPriceForProducts()
141141
}
142142
QUERY;
143143
$response = $this->graphQlQuery($query);
144+
$productsWithTierPrices = ['simple_1','simple_2','simple_3'];
145+
144146
foreach ($response['products']['items'] as $key => $item) {
145-
if ($item['sku'] == 'simple_19') {
146-
$this->assertCount(0, $response['products']['items'][$key]['price_tiers']);
147-
}
148-
if (in_array($item['sku'], ['simple_1','simple_2','simple_3'])) {
147+
if (in_array($item['sku'], $productsWithTierPrices)) {
149148
$this->assertCount(1, $response['products']['items'][$key]['price_tiers']);
149+
} else {
150+
$this->assertCount(0, $response['products']['items'][$key]['price_tiers']);
150151
}
151152
}
152153
}

dev/tests/integration/testsuite/Magento/Catalog/_files/simple_product_without_tier_price.php

Lines changed: 0 additions & 44 deletions
This file was deleted.

dev/tests/integration/testsuite/Magento/Catalog/_files/simple_product_without_tier_price_rollback.php

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)