public function testWithoutValuableData()
 {
     $foo = $this->getFilter('foo');
     $bar = $this->getFilter('bar');
     $builder = m::mock(\Illuminate\Database\Query\Builder::class);
     $input = ['input'];
     $foo->shouldReceive('collectData')->once();
     $bar->shouldReceive('collectData')->once();
     $foo->shouldReceive('collectInput')->with($input)->once()->andReturn(true);
     $bar->shouldReceive('collectInput')->with($input)->once()->andReturn(true);
     $foo->shouldNotReceive('collectValuableData');
     $bar->shouldNotReceive('collectValuableData');
     $foo->shouldReceive('applyToBuilder')->once();
     $bar->shouldReceive('applyToBuilder')->once();
     $coll = new Collection([$foo, $bar]);
     $coll->collectValuableData = false;
     $coll->applyToBuilder($builder, $input);
 }