Skip to content

Commit bbf1436

Browse files
committed
Fix tests
1 parent 8eadbbd commit bbf1436

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ public function testUpdate(array $data)
148148
* Delete special price for specified store when price scope is global
149149
*
150150
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
151-
*
151+
* @magentoConfigFixture default_store catalog/price/scope 0
152152
* @return void
153153
*/
154154
public function testDeleteWhenPriceIsGlobal(): void

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ protected function setUp(): void
3333
* Test get method.
3434
*
3535
* @magentoApiDataFixture Magento/Catalog/_files/product_simple.php
36+
* @magentoConfigFixture default_store catalog/price/scope 0
3637
*/
3738
public function testGet()
3839
{
@@ -53,7 +54,6 @@ public function testGet()
5354
$tierPrices = $productRepository->get(self::SIMPLE_PRODUCT_SKU)->getTierPrices();
5455
$this->assertNotEmpty($response);
5556
$this->assertEquals(count($response), count($tierPrices));
56-
5757
foreach ($response as $item) {
5858
$this->assertTrue($this->isPriceCorrect($item, $tierPrices));
5959
}
@@ -252,7 +252,6 @@ public function testDelete()
252252
private function isPriceCorrect(array $price, array $tierPrices)
253253
{
254254
$isCorrect = false;
255-
256255
foreach ($tierPrices as $tierPrice) {
257256
$priceIsCorrect = $price['price_type'] === \Magento\Catalog\Api\Data\TierPriceInterface::PRICE_TYPE_DISCOUNT
258257
? (float)$tierPrice->getExtensionAttributes()->getPercentageValue() === (float)$price['price']
@@ -265,7 +264,6 @@ private function isPriceCorrect(array $price, array $tierPrices)
265264
break;
266265
}
267266
}
268-
269267
return $isCorrect;
270268
}
271269
}

dev/tests/integration/testsuite/Magento/Bundle/_files/product.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,8 +56,7 @@
5656
'selection_qty' => 1,
5757
'selection_can_change_qty' => 1,
5858
'delete' => '',
59-
'selection_price_type' => 0,
60-
'selection_price_value' => 5
59+
'selection_price_type' => 0
6160
],
6261
],
6362
]

0 commit comments

Comments
 (0)