File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
dev/tests/integration/testsuite/Magento/Sales/_files Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 13
13
/** @var \Magento\Customer\Api\CustomerRepositoryInterface $customer */
14
14
$ customerRepository = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
15
15
->create (\Magento \Customer \Api \CustomerRepositoryInterface::class);
16
- $ customer = $ customerRepository ->getById (1 );
16
+ $ customerId = 1 ;
17
+ $ customer = $ customerRepository ->getById ($ customerId );
17
18
$ quote ->setCustomer ($ customer )->setCustomerIsGuest (false )->save ();
19
+ foreach ($ quote ->getAllAddresses () as $ address ) {
20
+ $ address ->setCustomerId ($ customerId )->save ();
21
+ }
18
22
19
23
/** @var \Magento\Quote\Model\QuoteIdMask $quoteIdMask */
20
24
$ quoteIdMask = \Magento \TestFramework \Helper \Bootstrap::getObjectManager ()
You can’t perform that action at this time.
0 commit comments