39 $this->authenticationMock = $this->createMock(AuthenticationInterface::class);
41 $this->customerModelMock = $this->createPartialMock(\
Magento\Customer\Model\Customer::class, [
'getId']);
43 $this->authenticationMock
53 $observerMock = $this->createMock(\
Magento\Framework\Event\Observer::class);
54 $eventMock = $this->createPartialMock(\
Magento\Framework\Event::class, [
'getData']);
55 $observerMock->expects($this->once())
57 ->willReturn($eventMock);
58 $eventMock->expects($this->once())
61 ->willReturn($this->customerModelMock);
62 $this->customerModelMock->expects($this->once())
65 $this->authenticationMock->expects($this->once())
68 $this->customerLoginSuccessObserver->execute($observerMock);
$customerLoginSuccessObserver