Doctrine\Tests\ODM\CouchDB\UnitOfWorkTest::testTryGetById PHP Method

testTryGetById() public method

public testTryGetById ( )
    public function testTryGetById()
    {
        $user1 = $this->uow->createDocument($this->type, array('_id' => '1', '_rev' => 1, 'username' => 'foo', 'type' => $this->type));
        $user2 = $this->uow->tryGetById(1, $this->type);
        $this->assertSame($user1, $user2);
    }