Skip to content

Commit 41ab82e

Browse files
committed
MAGETWO-93776: [Forwardport] Stabilization
1 parent 70abd45 commit 41ab82e

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

dev/tests/integration/testsuite/Magento/Catalog/Model/ProductPriceTest.php

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,17 +84,19 @@ public function testSetGetFinalPrice()
8484
/**
8585
* @magentoDbIsolation disabled
8686
* @magentoDataFixture Magento/Catalog/_files/product_with_options.php
87+
* @return void
8788
*/
88-
public function testGetMinPrice()
89+
public function testGetMinPrice(): void
8990
{
90-
$product = $this->productRepository->get('simple');
91+
$productRepository = Bootstrap::getObjectManager()->create(ProductRepositoryInterface::class);
92+
$product = $productRepository->get('simple');
9193
$collection = Bootstrap::getObjectManager()->create(Collection::class);
9294
$collection->addIdFilter($product->getId());
9395
$collection->addPriceData();
9496
$collection->load();
9597
/** @var \Magento\Catalog\Model\Product $product */
9698
$product = $collection->getFirstItem();
97-
$this->assertEquals(323, $product->getData('min_price'));
99+
$this->assertEquals(333, $product->getData('min_price'));
98100
}
99101

100102
/**

0 commit comments

Comments
 (0)