File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed
dev/tests/integration/testsuite/Magento/Catalog/Model Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -84,17 +84,19 @@ public function testSetGetFinalPrice()
84
84
/**
85
85
* @magentoDbIsolation disabled
86
86
* @magentoDataFixture Magento/Catalog/_files/product_with_options.php
87
+ * @return void
87
88
*/
88
- public function testGetMinPrice ()
89
+ public function testGetMinPrice (): void
89
90
{
90
- $ product = $ this ->productRepository ->get ('simple ' );
91
+ $ productRepository = Bootstrap::getObjectManager ()->create (ProductRepositoryInterface::class);
92
+ $ product = $ productRepository ->get ('simple ' );
91
93
$ collection = Bootstrap::getObjectManager ()->create (Collection::class);
92
94
$ collection ->addIdFilter ($ product ->getId ());
93
95
$ collection ->addPriceData ();
94
96
$ collection ->load ();
95
97
/** @var \Magento\Catalog\Model\Product $product */
96
98
$ product = $ collection ->getFirstItem ();
97
- $ this ->assertEquals (323 , $ product ->getData ('min_price ' ));
99
+ $ this ->assertEquals (333 , $ product ->getData ('min_price ' ));
98
100
}
99
101
100
102
/**
You can’t perform that action at this time.
0 commit comments