public function setUp() { parent::setUp(); $cluster = $this->app['db']; $this->command = new \Ytake\LaravelCouchbase\Console\IndexFinderCommand($cluster); $this->command->setLaravel(new MockApplication()); }
public function setUp() { parent::setUp(); $this->databaseManager = $this->app['db']; $this->command = new \Ytake\LaravelCouchbase\Console\IndexCreatorCommand($this->databaseManager); $this->command->setLaravel(new MockApplication()); }
protected function setUp() { parent::setUp(); /** @var \Illuminate\Database\DatabaseManager $databaseManager */ $databaseManager = $this->app['db']; $this->grammer = new \Ytake\LaravelCouchbase\Query\Grammar(); $processor = new \Ytake\LaravelCouchbase\Query\Processor(); $this->builder = new \Ytake\LaravelCouchbase\Query\Builder($databaseManager->connection(), $this->grammer, $processor); }
protected function setUp() { parent::setUp(); $cluster = $this->app['db']->connection('couchbase')->getCouchbase(); $this->store = new \Ytake\LaravelCouchbase\Cache\LegacyCouchbaseStore($cluster, 'testing', '', 'testing'); }
public function setUp() { parent::setUp(); $this->connection = new \Ytake\LaravelCouchbase\Database\CouchbaseConnection($this->app['config']->get('database.connections.couchbase'), 'couchbase'); }
protected function setUp() { parent::setUp(); $this->connection = $this->app['db']->connection(); }
protected function setUp() { parent::setUp(); $this->repository = $this->app['cache']->driver('couchbase-memcached'); }