lithium\tests\cases\data\source\http\adapter\CouchDbTest::setUp PHP Method

setUp() public method

public setUp ( )
    public function setUp()
    {
        $this->_db = new CouchDb(array('socket' => false));
        $model = $this->_model;
        Connections::add('mockconn', array('object' => $this->_db));
        $model::config(array('meta' => array('connection' => 'mockconn')));
        $model::resetSchema();
        $entity = new Document(compact('model'));
        $type = 'create';
        $this->_query = new Query(compact('model', 'entity', 'type'));
    }