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 9
9
10
10
use Magento \Catalog \Model \ProductRepository ;
11
11
use Magento \Framework \DB \Adapter \AdapterInterface ;
12
+ use Magento \Quote \Model \ResourceModel \Quote as QuoteResource ;
12
13
use Magento \TestFramework \Helper \Bootstrap ;
13
14
use Magento \TestFramework \Quote \Model \GetQuoteByReservedOrderId ;
14
15
use PHPUnit \Framework \TestCase ;
@@ -60,11 +61,13 @@ public function testMarkQuoteRecollectAfterChangeProductPrice(): void
60
61
$ product ->setPrice ((float )$ product ->getPrice () + 10 );
61
62
$ this ->productRepository ->save ($ product );
62
63
64
+ /** @var QuoteResource $quoteResource */
65
+ $ quoteResource = $ quote ->getResource ();
63
66
/** @var AdapterInterface $connection */
64
- $ connection = $ quote -> getResource () ->getConnection ();
67
+ $ connection = $ quoteResource ->getConnection ();
65
68
$ select = $ connection ->select ()
66
69
->from (
67
- $ connection -> getTableName ('quote ' ),
70
+ $ quoteResource -> getTable ('quote ' ),
68
71
['updated_at ' , 'trigger_recollect ' ]
69
72
)->where (
70
73
"reserved_order_id = 'test_order_with_simple_product_without_address' "
You can’t perform that action at this time.
0 commit comments