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