function sync_profile_field_with_moodle($field) { sync_profile_field_to_moodle($field); sync_profile_field_from_moodle($field); }
/** * ELIS-4797: Test Moodle Profile Custom Field Operations */ public function test_moodleprofile_customfieldoperations() { $category = $this->create_field_category(CONTEXT_ELIS_USER); $field = $this->create_user_field($category); sync_profile_field_to_moodle($field); sync_profile_field_from_moodle($field); }