Skip to content

Commit 12507a8

Browse files
committed
MAGETWO-97456: Cart's customer and address mismatch
1 parent 15cb4cb commit 12507a8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

dev/tests/integration/testsuite/Magento/Customer/_files/customer_with_addresses_rollback.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@
77

88
use Magento\TestFramework\Helper\Bootstrap;
99
use Magento\Customer\Api\CustomerRepositoryInterface;
10-
use Magento\Customer\Api\AddressRepositoryInterface;
1110
use Magento\Framework\Exception\NoSuchEntityException;
1211
use Magento\Framework\Registry;
1312

@@ -20,8 +19,6 @@
2019
$customerRepo = $objectManager->get(CustomerRepositoryInterface::class);
2120
try {
2221
$customer = $customerRepo->get('customer_with_addresses@test.com');
23-
/** @var AddressRepositoryInterface $addressRepo */
24-
$addressRepo = $objectManager->get(AddressRepositoryInterface::class);
2522
$customerRepo->delete($customer);
2623
} catch (NoSuchEntityException $exception) {
2724
//Already deleted

0 commit comments

Comments
 (0)