'name' => 'hook1',
'eventName' => CustomerBeforeLoginEvent::EVENT_NAME,
'url' => 'https://test.com',
],
], Context::
createDefaultContext());
$factory =
$this->
getContainer()->
get(FlowFactory::
class);
$event =
$factory->
create(new CustomerBeforeLoginEvent( $this->
getContainer()->
get(SalesChannelContextFactory::
class)->
create(Uuid::
randomHex(), TestDefaults::SALES_CHANNEL
),
'test@example.com'
));
$event->
setFlowState(new FlowState());
$client =
new Client([ 'handler' =>
new MockHandler([]),
]);
$webhookDispatcher =
new WebhookDispatcher( $this->
getContainer()->
get('event_dispatcher'
),
$this->
getContainer()->
get(Connection::
class),
$client,
$this->shopUrl,
$this->
getContainer(),