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

testScheduleInsertion() public method

    public function testScheduleInsertion()
    {
        $httpClient = $this->getMock('Doctrine\\CouchDB\\HTTP\\Client', array(), array(), '', false);
        $httpClient->expects($this->once())->method('request')->will($this->returnValue(new \Doctrine\CouchDB\HTTP\Response(404, array(), "{}")));
        $this->dm->getCouchDBClient()->setHttpClient($httpClient);
        $object = new UoWUser();
        $object->id = "1";
        $object->username = "bar";
        $this->uow->scheduleInsert($object);
    }