protected function setUp(): void
{ $this->repository =
$this->
createMock(EntityRepository::
class);
$this->dispatcher =
$this->
createMock(EventDispatcherInterface::
class);
$this->storer =
new UserStorer($this->repository,
$this->dispatcher
);
} public function testStoreWithAware(): void
{ $event =
$this->
createMock(UserRecoveryRequestEvent::
class);
$stored =
[];
$stored =
$this->storer->
store($event,
$stored);
static::
assertArrayHasKey(UserAware::USER_RECOVERY_ID,
$stored);
} public function testStore(): void
{ $event =
$this->
createMock(CustomerRegisterEvent::
class);
$stored =
[];
$stored =
$this->storer->
store($event,
$stored);
static::
assertArrayNotHasKey(UserAware::USER_RECOVERY_ID,
$stored);
}