->
with([ ['id' => 'customer1', 'company' => '', 'customFields' =>
['test1' => '1'
], 'salutationId' => '1'
],
]);
$storeApiCustomFieldMapper =
$this->
createMock(StoreApiCustomFieldMapper::
class);
$storeApiCustomFieldMapper ->
expects(static::
once()) ->
method('map'
) ->
with('customer',
$customFields) ->
willReturn(['test1' => '1'
]);
$change =
new ChangeCustomerProfileRoute( $customerRepository,
new EventDispatcher(),
$this->
createMock(DataValidator::
class),
$this->
createMock(CustomerValidationFactory::
class),
$storeApiCustomFieldMapper,
$this->
createMock(EntityRepository::
class),
);
$customer =
new CustomerEntity();
$customer->
setId('customer1'
);
$data =
new RequestDataBag([