/** * Save prevalue editor * * @param AbstractDatatype $datatype Datatype * * @return Model */ public static function savePrevalueEditor(AbstractDatatype $datatype) { $datatype->getPrevalueEditor()->save(); return $datatype->getConfig(); }
/** * Test * * @return void */ public function testSetConfig() { $this->object->setConfig(serialize('NewValue')); $this->assertEquals('NewValue', $this->object->getConfig()); }