protected function setUp(): void
{ parent::
setUp();
$this->customerRepository =
$this->
getContainer()->
get('customer.repository'
);
$this->addressId = Uuid::
randomHex();
} public function testDeleteAddressOfOtherCustomer(): void
{ [$id1,
$id2] =
$this->
createCustomers();
$context =
$this->
getContainer()->
get(SalesChannelContextFactory::
class) ->
create(Uuid::
randomHex(), TestDefaults::SALES_CHANNEL,
[SalesChannelContextService::CUSTOMER_ID =>
$id1]);
$customer =
$context->
getCustomer();
static::
assertInstanceOf(CustomerEntity::
class,
$customer);
static::
assertSame($id1,
$customer->
getId());
$controller =
$this->
getContainer()->
get(AddressController::
class);
$request =
new Request();