/** * Test for setField(). * * @expectedException \LogicException * @expectedExceptionMessage doesn't support `field` parameter */ public function testSetField() { $aggregation = new FilterAggregation('test_agg'); $aggregation->setField('test_field'); }