File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
dev/tests/integration/testsuite/Magento/Quote/Model/Product/Plugin Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change 99
1010use Magento \Catalog \Model \ProductRepository ;
1111use Magento \Framework \DB \Adapter \AdapterInterface ;
12+ use Magento \Quote \Model \ResourceModel \Quote as QuoteResource ;
1213use Magento \TestFramework \Helper \Bootstrap ;
1314use Magento \TestFramework \Quote \Model \GetQuoteByReservedOrderId ;
1415use PHPUnit \Framework \TestCase ;
@@ -60,11 +61,13 @@ public function testMarkQuoteRecollectAfterChangeProductPrice(): void
6061 $ product ->setPrice ((float )$ product ->getPrice () + 10 );
6162 $ this ->productRepository ->save ($ product );
6263
64+ /** @var QuoteResource $quoteResource */
65+ $ quoteResource = $ quote ->getResource ();
6366 /** @var AdapterInterface $connection */
64- $ connection = $ quote -> getResource () ->getConnection ();
67+ $ connection = $ quoteResource ->getConnection ();
6568 $ select = $ connection ->select ()
6669 ->from (
67- $ connection -> getTableName ('quote ' ),
70+ $ quoteResource -> getTable ('quote ' ),
6871 ['updated_at ' , 'trigger_recollect ' ]
6972 )->where (
7073 "reserved_order_id = 'test_order_with_simple_product_without_address' "
You can’t perform that action at this time.
0 commit comments