summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorsten <stenmarsh938@gmail.com>2016-03-21 17:31:13 +0300
committersten <stenmarsh938@gmail.com>2016-03-21 17:31:33 +0300
commit4e6ec96d0e50f26b54c58abea48ebca6ee7ffb47 (patch)
treeb355315261030aa6b38e95f04ddcffb6368a1fa3 /tests
parent85cd482e4ebe095700c2c89b1ed89519431c4370 (diff)
downloadscheduler-helper-php-4e6ec96d0e50f26b54c58abea48ebca6ee7ffb47.zip
scheduler-helper-php-4e6ec96d0e50f26b54c58abea48ebca6ee7ffb47.tar.gz
scheduler-helper-php-4e6ec96d0e50f26b54c58abea48ebca6ee7ffb47.tar.bz2
Add MonthRecurrings test data
Diffstat (limited to 'tests')
-rw-r--r--tests/Data_getData/MonthRecurrings/source.json38
-rw-r--r--tests/Data_getData/MonthRecurrings/target.json130
2 files changed, 168 insertions, 0 deletions
diff --git a/tests/Data_getData/MonthRecurrings/source.json b/tests/Data_getData/MonthRecurrings/source.json
new file mode 100644
index 0000000..3e4e8e0
--- /dev/null
+++ b/tests/Data_getData/MonthRecurrings/source.json
@@ -0,0 +1,38 @@
+{
+ "settings": {
+ "start_date": "2016-02-01 00:00:00",
+ "end_date": "2016-09-31 24:00:00"
+ },
+ "data": [
+ {
+ "id": "12",
+ "start_date": "2016-03-01 00:00:00",
+ "end_date": "9999-02-01 00:00:00",
+ "text": "Month event 1",
+ "rec_type": "month_1___#no",
+ "event_pid": "0",
+ "event_length": "11400",
+ "rec_pattern": "month_1___"
+ },
+ {
+ "id": "13",
+ "start_date": "2016-03-03 00:00:00",
+ "end_date": "2016-09-03 00:00:00",
+ "text": "Month Event 2",
+ "rec_type": "month_2___#3",
+ "event_pid": "0",
+ "event_length": "300",
+ "rec_pattern": "month_2___"
+ },
+ {
+ "id": "14",
+ "start_date": "2016-01-01 15:00:00",
+ "end_date": "2016-05-21 00:00:00",
+ "text": "Month event 3 before",
+ "rec_type": "month_1_5_4_#",
+ "event_pid": "0",
+ "event_length": "10800",
+ "rec_pattern": "month_1_5_4_"
+ }
+ ]
+} \ No newline at end of file
diff --git a/tests/Data_getData/MonthRecurrings/target.json b/tests/Data_getData/MonthRecurrings/target.json
new file mode 100644
index 0000000..3244f55
--- /dev/null
+++ b/tests/Data_getData/MonthRecurrings/target.json
@@ -0,0 +1,130 @@
+{
+ "data": [
+ {
+ "start_date": "2016-03-01 00:00:00",
+ "end_date": "2016-03-01 03:10:00",
+ "event_pid": "0",
+ "text": "Month event 1",
+ "id": "12",
+ "rec_type": "month_1___#no",
+ "event_length": "11400"
+ },
+ {
+ "start_date": "2016-04-01 00:00:00",
+ "end_date": "2016-04-01 03:10:00",
+ "event_pid": "0",
+ "text": "Month event 1",
+ "id": "12",
+ "rec_type": "month_1___#no",
+ "event_length": "11400"
+ },
+ {
+ "start_date": "2016-05-01 00:00:00",
+ "end_date": "2016-05-01 03:10:00",
+ "event_pid": "0",
+ "text": "Month event 1",
+ "id": "12",
+ "rec_type": "month_1___#no",
+ "event_length": "11400"
+ },
+ {
+ "start_date": "2016-06-01 00:00:00",
+ "end_date": "2016-06-01 03:10:00",
+ "event_pid": "0",
+ "text": "Month event 1",
+ "id": "12",
+ "rec_type": "month_1___#no",
+ "event_length": "11400"
+ },
+ {
+ "start_date": "2016-07-01 00:00:00",
+ "end_date": "2016-07-01 03:10:00",
+ "event_pid": "0",
+ "text": "Month event 1",
+ "id": "12",
+ "rec_type": "month_1___#no",
+ "event_length": "11400"
+ },
+ {
+ "start_date": "2016-08-01 00:00:00",
+ "end_date": "2016-08-01 03:10:00",
+ "event_pid": "0",
+ "text": "Month event 1",
+ "id": "12",
+ "rec_type": "month_1___#no",
+ "event_length": "11400"
+ },
+ {
+ "start_date": "2016-09-01 00:00:00",
+ "end_date": "2016-09-01 03:10:00",
+ "event_pid": "0",
+ "text": "Month event 1",
+ "id": "12",
+ "rec_type": "month_1___#no",
+ "event_length": "11400"
+ },
+ {
+ "start_date": "2016-10-01 00:00:00",
+ "end_date": "2016-10-01 03:10:00",
+ "event_pid": "0",
+ "text": "Month event 1",
+ "id": "12",
+ "rec_type": "month_1___#no",
+ "event_length": "11400"
+ },
+ {
+ "start_date": "2016-03-03 00:00:00",
+ "end_date": "2016-03-03 00:05:00",
+ "event_pid": "0",
+ "text": "Month Event 2",
+ "id": "13",
+ "rec_type": "month_2___#3",
+ "event_length": "300"
+ },
+ {
+ "start_date": "2016-05-03 00:00:00",
+ "end_date": "2016-05-03 00:05:00",
+ "event_pid": "0",
+ "text": "Month Event 2",
+ "id": "13",
+ "rec_type": "month_2___#3",
+ "event_length": "300"
+ },
+ {
+ "start_date": "2016-07-03 00:00:00",
+ "end_date": "2016-07-03 00:05:00",
+ "event_pid": "0",
+ "text": "Month Event 2",
+ "id": "13",
+ "rec_type": "month_2___#3",
+ "event_length": "300"
+ },
+ {
+ "start_date": "2016-02-26 15:00:00",
+ "end_date": "2016-02-26 18:00:00",
+ "event_pid": "0",
+ "text": "Month event 3 before",
+ "id": "14",
+ "rec_type": "month_1_5_4_#",
+ "event_length": "10800"
+ },
+ {
+ "start_date": "2016-03-25 15:00:00",
+ "end_date": "2016-03-25 18:00:00",
+ "event_pid": "0",
+ "text": "Month event 3 before",
+ "id": "14",
+ "rec_type": "month_1_5_4_#",
+ "event_length": "10800"
+ },
+ {
+ "start_date": "2016-04-22 15:00:00",
+ "end_date": "2016-04-22 18:00:00",
+ "event_pid": "0",
+ "text": "Month event 3 before",
+ "id": "14",
+ "rec_type": "month_1_5_4_#",
+ "event_length": "10800"
+ }
+ ]
+} \ No newline at end of file