public function testIdentityMap() { $user = new User('1'); $user->changeName('Malocher'); $user->changeEmail('*****@*****.**'); $this->eventStore->save($user); $userFQCN = get_class($user); $checkUser = $this->eventStore->find($userFQCN, '1'); $this->assertSame($user, $checkUser); }
/** * {@inheritDoc} */ public function find($sourceId) { return $this->eventStore->find($this->sourceFQCN, $sourceId); }