Example #1
0
 /**
  *
  */
 public function testExcludes()
 {
     $model = $this->getModel();
     $model->shouldReceive('isReadOnly')->once()->andReturn(false);
     $model->shouldReceive('getTable')->once()->andReturn('tests');
     $model->shouldReceive('getIncludes')->once()->andReturn(['foo', 'bar']);
     $model->shouldReceive('setIncludes')->once()->with([])->andReturn($model);
     $query = new Query($this->getConnecion(), $model);
     $query->excluding(['foo', 'bar']);
 }