Permalink
Browse files

Added appointments to trackexport test

  • Loading branch information...
mennodekker committed Jan 4, 2018
1 parent b463a34 commit a240b7ce7ecfa6e52feea98e93be854eda108c12
@@ -55,7 +55,10 @@ public function setUp()
\Zend_Registry::getInstance()->set('project', $project);
$translate = new \MUtil_Translate_Adapter_Potemkin();
\Zend_Registry::getInstance()->set('translate', $translate);
\Zend_Registry::getInstance()->set('translate', $translate);
$cache = \Zend_Cache::factory('Core', 'Static', array('caching' => false), array('disable_caching' => true));
\Zend_Registry::getInstance()->set('cache', $cache);
}
protected function setUpApplication()
@@ -98,7 +101,7 @@ public function testExport()
$batch = $this->loader->getTaskRunnerBatch('track_export_' . $trackId);
$formData = [
'orgs' => 1,
'fields' => ['f__1', 'f__2', 'f__3'],
'fields' => ['f__1', 'f__2', 'f__3', 'a__4'],
'rounds' => [10, 20, 30, 40],
'surveys' => [1,2]
];
@@ -11,9 +11,11 @@
<gems__track_fields gtf_id_field = "2" gtf_id_order = "20" gtf_id_track="1" gtf_field_name="DateName" gtf_field_code="datecode" gtf_field_type="date" gtf_to_track_info="0" gtf_changed_by="1" gtf_created="2012-09-07" gtf_created_by="1"/>
<gems__track_fields gtf_id_field = "3" gtf_id_order = "30" gtf_id_track="1" gtf_field_name="Relation" gtf_field_code="rel" gtf_field_type="relation" gtf_to_track_info="0" gtf_changed_by="1" gtf_created="2012-09-07" gtf_created_by="1"/>
<gems__rounds gro_id_round="10" gro_id_order="10" gro_id_track="1" gro_id_survey="1" gro_survey_name="test survey1" gro_changed_by="1" gro_created="2012-03-29 10:55:55" gro_created_by="1"/>
<gems__rounds gro_id_round="20" gro_id_order="11" gro_id_track="1" gro_id_survey="2" gro_survey_name="test survey2" gro_changed_by="1" gro_created="2012-03-29 10:55:55" gro_created_by="1"/>
<gems__rounds gro_id_round="30" gro_id_order="12" gro_id_track="1" gro_id_survey="2" gro_survey_name="test survey2" gro_changed_by="1" gro_created="2012-03-29 10:55:55" gro_created_by="1"/>
<gems__rounds gro_id_round="40" gro_id_order="13" gro_id_track="1" gro_id_survey="1" gro_survey_name="test survey1" gro_changed_by="1" gro_created="2012-03-29 10:55:55" gro_created_by="1"/>
<gems__track_appointments gtap_id_app_field = "4" gtap_id_order = "40" gtap_id_track="1" gtap_field_name="Appointemnt" gtap_field_code="app1" gtap_to_track_info="0" gtap_changed_by="1" gtap_created="2012-09-07" gtap_created_by="1"/>
<gems__rounds gro_id_round="10" gro_id_order="10" gro_id_track="1" gro_id_survey="1" gro_survey_name="test survey1" gro_valid_after_source="rtr" gro_valid_after_field="gr2t_start_date" gro_valid_after_unit="D" gro_valid_after_length="0" gro_valid_for_source="tok" gro_valid_for_field="gto_valid_from" gro_valid_for_unit="W" gro_valid_for_length="1" gro_id_relationfield="-1" gro_changed_by="1" gro_created="2012-03-29 10:55:55" gro_created_by="1"/>
<gems__rounds gro_id_round="20" gro_id_order="11" gro_id_track="1" gro_id_survey="2" gro_survey_name="test survey2" gro_valid_after_source="rtr" gro_valid_after_field="f__2" gro_valid_after_unit="D" gro_valid_after_length="0" gro_valid_for_source="app" gro_valid_for_field="a__4" gro_valid_for_unit="D" gro_valid_for_length="-1" gro_changed_by="1" gro_created="2012-03-29 10:55:55" gro_created_by="1"/>
<gems__rounds gro_id_round="30" gro_id_order="12" gro_id_track="1" gro_id_survey="2" gro_survey_name="test survey2" gro_valid_after_source="rtr" gro_valid_after_field="10" gro_valid_after_unit="D" gro_valid_after_length="1" gro_valid_for_source="tok" gro_valid_for_field="gto_valid_from" gro_valid_for_unit="W" gro_valid_for_length="1" gro_changed_by="1" gro_created="2012-03-29 10:55:55" gro_created_by="1"/>
<gems__rounds gro_id_round="40" gro_id_order="13" gro_id_track="1" gro_id_survey="1" gro_survey_name="test survey1" gro_valid_after_source="rtr" gro_valid_after_field="gr2t_start_date" gro_valid_after_unit="D" gro_valid_after_length="0" gro_valid_for_source="tok" gro_valid_for_field="gto_valid_from" gro_valid_for_unit="W" gro_valid_for_length="1" gro_id_relationfield="3" gro_changed_by="1" gro_created="2012-03-29 10:55:55" gro_created_by="1"/>
</dataset>
@@ -14,6 +14,8 @@ gtf_id_order gtf_field_name gtf_field_code gtf_field_description gtf_field_value
20 DateName datecode date 0 false false false
gtf_id_order gtf_field_name gtf_field_code gtf_field_description gtf_field_values gtf_field_default gtf_calculate_using gtf_field_type gtf_to_track_info gtf_track_info_label gtf_required gtf_readonly
30 Relation rel relation 0 false false false
gtf_id_order gtf_field_name gtf_field_code gtf_field_description gtf_to_track_info gtf_track_info_label gtf_required gtf_readonly gtf_after_next gtf_min_diff_length gtf_min_diff_unit gtf_max_diff_exists gtf_max_diff_length gtf_max_diff_unit gtf_uniqueness gtf_create_track gtf_create_wait_days gtf_field_type gtf_field_values gtf_field_default gtf_calculate_using
40 Appointemnt app1 0 false false false 1 1 D 0 0 D 0 0 182 appointment
surveys
gsu_export_code gsu_survey_name gsu_survey_description gsu_surveyor_id
@@ -22,7 +24,7 @@ export2 test survey2
rounds
gro_id_order gro_id_relationfield gro_round_description gro_icon_file gro_changed_event gro_display_event gro_valid_after_source gro_valid_after_field gro_valid_after_unit gro_valid_after_length gro_valid_for_source gro_valid_for_field gro_valid_for_unit gro_valid_for_length gro_organizations gro_code survey_export_code valid_after valid_for
10 tok gto_valid_from M 0 nul M 0 export1
11 tok gto_valid_from M 0 nul M 0 export2
12 tok gto_valid_from M 0 nul M 0 export2
13 tok gto_valid_from M 0 nul M 0 export1
10 -1 rtr gr2t_start_date D 0 tok gto_valid_from W 1 export1
11 rtr {f20} D 0 app {f40} D -1 export2
12 rtr 10 D 1 tok gto_valid_from W 1 export2
13 {f30} rtr gr2t_start_date D 0 tok gto_valid_from W 1 export1

0 comments on commit a240b7c

Please sign in to comment.