public function setUp()
 {
     parent::setUp();
     $resolver = M::mock('Illuminate\\Database\\ConnectionResolverInterface');
     $resolver->shouldReceive('connection')->andReturn($this->getConnectionWithConfig('default'));
     Wiz::setConnectionResolver($resolver);
 }
Ejemplo n.º 2
0
 public function setUp()
 {
     parent::setUp();
     $this->query = M::mock('Vinelab\\NeoEloquent\\Query\\Builder');
     $this->query->shouldReceive('modelAsNode')->andReturn('n');
     $this->model = M::mock('Vinelab\\NeoEloquent\\Eloquent\\Model');
     $this->builder = new Builder($this->query);
 }
Ejemplo n.º 3
0
 public function setUp()
 {
     parent::setUp();
     $this->grammar = M::mock('Vinelab\\NeoEloquent\\Query\\Grammars\\CypherGrammar')->makePartial();
     $this->connection = M::mock('Vinelab\\NeoEloquent\\Connection');
     $this->neoClient = M::mock('Everyman\\Neo4j\\Client');
     $this->connection->shouldReceive('getClient')->once()->andReturn($this->neoClient);
     $this->builder = new Builder($this->connection, $this->grammar);
 }
Ejemplo n.º 4
0
 public function setUp()
 {
     parent::setUp();
     $resolver = M::mock('Illuminate\\Database\\ConnectionResolverInterface');
     $resolver->shouldReceive('connection')->andReturn($this->getConnectionWithConfig('default'));
     Misfit::setConnectionResolver($resolver);
     $this->t = Misfit::create(['name' => 'Nikola Tesla', 'alias' => 'tesla']);
     $this->e = misfit::create(['name' => 'Thomas Edison', 'alias' => 'edison']);
 }
Ejemplo n.º 5
0
 public function setUp()
 {
     parent::setUp();
     $resolver = M::mock('Illuminate\\Database\\ConnectionResolverInterface');
     $resolver->shouldReceive('connection')->andReturn($this->getConnectionWithConfig('default'));
     User::setConnectionResolver($resolver);
     // Setup the data in the database
     $this->ab = User::create(['name' => 'Ey Bee', 'alias' => 'ab', 'email' => '*****@*****.**', 'calls' => 10]);
     $this->cd = User::create(['name' => 'See Dee', 'alias' => 'cd', 'email' => '*****@*****.**', 'calls' => 20]);
     $this->ef = User::create(['name' => 'Eee Eff', 'alias' => 'ef', 'email' => '*****@*****.**', 'calls' => 30]);
     $this->gh = User::create(['name' => 'Gee Aych', 'alias' => 'gh', 'email' => '*****@*****.**', 'calls' => 40]);
     $this->ij = User::create(['name' => 'Eye Jay', 'alias' => 'ij', 'email' => '*****@*****.**', 'calls' => 50]);
 }
Ejemplo n.º 6
0
 public function setUp()
 {
     parent::setUp();
     $this->user = array('name' => 'Mulkave', 'email' => '*****@*****.**', 'username' => 'mulkave');
 }
Ejemplo n.º 7
0
 public function setUp()
 {
     parent::setUp();
     $this->query = new Builder((new User())->getConnection(), new CypherGrammar());
     $this->query->from = 'User';
 }
Ejemplo n.º 8
0
 public function setUp()
 {
     parent::setUp();
     $this->grammar = new Grammar();
 }