public testGetOrCreateDocumentUsingIdentityMap ( ) |
public function testGetOrCreateDocumentUsingIdentityMap()
{
$user1 = $this->uow->getOrCreateDocument($this->type, $this->createNode('/somepath', 'foo'));
$user2 = $this->uow->getOrCreateDocument($this->type, $this->createNode('/somepath', 'foo'));
$this->assertSame($user1, $user2);
}