public function testUpdateConfig() { $attendeeRoles = $this->testSearchConfigs(); $keyFieldConfig = json_decode($attendeeRoles['value'], true); $keyFieldConfig['records'][] = array('id' => 'CHAIR', 'value' => 'Chair'); $attendeeRoles['value'] = json_encode($keyFieldConfig); $attendeeRoles['id'] = ''; $this->_json->saveConfig($attendeeRoles); $updatedAttendeeRoles = $this->testSearchConfigs(); $this->assertEquals($attendeeRoles['value'], $updatedAttendeeRoles['value']); return $updatedAttendeeRoles; }