Doctrine\Tests\ODM\PHPCR\UnitOfWorkTest::testGetDocumentById PHP Method

testGetDocumentById() public method

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