We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 15cb4cb commit 12507a8Copy full SHA for 12507a8
dev/tests/integration/testsuite/Magento/Customer/_files/customer_with_addresses_rollback.php
@@ -7,7 +7,6 @@
7
8
use Magento\TestFramework\Helper\Bootstrap;
9
use Magento\Customer\Api\CustomerRepositoryInterface;
10
-use Magento\Customer\Api\AddressRepositoryInterface;
11
use Magento\Framework\Exception\NoSuchEntityException;
12
use Magento\Framework\Registry;
13
@@ -20,8 +19,6 @@
20
19
$customerRepo = $objectManager->get(CustomerRepositoryInterface::class);
21
try {
22
$customer = $customerRepo->get('customer_with_addresses@test.com');
23
- /** @var AddressRepositoryInterface $addressRepo */
24
- $addressRepo = $objectManager->get(AddressRepositoryInterface::class);
25
$customerRepo->delete($customer);
26
} catch (NoSuchEntityException $exception) {
27
//Already deleted
0 commit comments