/** * Test for setField method on global aggregation. * * @expectedException \LogicException */ public function testSetField() { $aggregation = new GlobalAggregation('test_agg'); $aggregation->setField('test_field'); }