public function testSetAndGetFieldsUsingModifiersWithoutKey() { $this->doc->clear(); $this->doc->setField('id', 1); $this->doc->setField('name', 'newname', null, Document::MODIFIER_SET); $this->setExpectedException('Solarium\\Exception\\RuntimeException'); $this->doc->getFields(); }