public function test_search_sends_correct_parameters_to_elasticsearch()
 {
     $client = Mockery::mock('Elasticsearch\\Client');
     $client->shouldReceive('search')->with(['index' => 'scout', 'type' => 'table', 'body' => ['query' => ['bool' => ['must' => [['query_string' => ['query' => '*zonda*']], ['match_phrase' => ['foo' => 1]]]]]]]);
     $engine = new ElasticsearchEngine($client, 'scout');
     $builder = new Laravel\Scout\Builder(new ElasticsearchEngineTestModel(), 'zonda');
     $builder->where('foo', 1);
     $engine->search($builder);
 }