function it_build_parameters_with_glass_filter() { $criteria = new Criteria(0, false); $criteria->withGlass("glass.highball"); $this->createParameters($criteria)->shouldReturn(['index' => ElasticSearch::INDEX, 'type' => 'recipe', 'body' => ['from' => 0, 'size' => 10, 'query' => ['filtered' => ['filter' => ['and' => [['term' => ['glass' => 'glass.highball']]]]]]]]); }