summaryrefslogtreecommitdiffstats
path: root/tests/Data_saveDataUpdate/WeekRecurrings
diff options
context:
space:
mode:
authorsten <stenmarsh938@gmail.com>2016-03-21 12:50:04 +0300
committersten <stenmarsh938@gmail.com>2016-03-21 12:50:04 +0300
commit3ec15ffe2273acf2820df11203dc4ab06614d15b (patch)
tree8b97a00e3583795bc55dfdab21860db61464ba81 /tests/Data_saveDataUpdate/WeekRecurrings
parente93b6c9f82c9a8136f8c9d64357f1500bef0917f (diff)
downloadscheduler-helper-php-3ec15ffe2273acf2820df11203dc4ab06614d15b.zip
scheduler-helper-php-3ec15ffe2273acf2820df11203dc4ab06614d15b.tar.gz
scheduler-helper-php-3ec15ffe2273acf2820df11203dc4ab06614d15b.tar.bz2
Add data for saveData test.
Diffstat (limited to 'tests/Data_saveDataUpdate/WeekRecurrings')
-rw-r--r--tests/Data_saveDataUpdate/WeekRecurrings/source.json11
-rw-r--r--tests/Data_saveDataUpdate/WeekRecurrings/target.json14
2 files changed, 14 insertions, 11 deletions
diff --git a/tests/Data_saveDataUpdate/WeekRecurrings/source.json b/tests/Data_saveDataUpdate/WeekRecurrings/source.json
index b66c9c6..dbce0bb 100644
--- a/tests/Data_saveDataUpdate/WeekRecurrings/source.json
+++ b/tests/Data_saveDataUpdate/WeekRecurrings/source.json
@@ -34,7 +34,8 @@
"days_of_week": "sunday,monday,tuesday,wednesday,thursday,friday,saturday"
},
"start_date": "2016-03-01 12:20:00",
- "length": 11400,
+ "end_date": "9999-02-01 00:00:00",
+ "length": 300,
"text": "Test Week Event 1"
},
{
@@ -42,11 +43,13 @@
"recurring_type": {
"each": "week",
"repeat": 17,
- "days_of_week": "monday,wednesday,friday"
+ "step": 1,
+ "days_of_week": "monday,wednesday,thursday,friday"
},
"start_date": "2016-03-02 20:00:00",
- "length": 11400,
+ "end_date": "2016-03-31 00:00:00",
+ "length": 300,
"text": "Test Week Event 2"
},
{
@@ -58,7 +61,7 @@
},
"start_date": "2016-03-02 15:55:00",
"end_date": "2016-08-21 00:00:00",
- "length": 6000,
+ "length": 600,
"text": "Test Week Event 3"
}
]
diff --git a/tests/Data_saveDataUpdate/WeekRecurrings/target.json b/tests/Data_saveDataUpdate/WeekRecurrings/target.json
index fca6190..731db63 100644
--- a/tests/Data_saveDataUpdate/WeekRecurrings/target.json
+++ b/tests/Data_saveDataUpdate/WeekRecurrings/target.json
@@ -1,32 +1,32 @@
{
"data": [
{
- "start_date": "2016-03-01 00:00:00",
+ "start_date": "2016-03-01 12:20:00",
"end_date": "9999-02-01 00:00:00",
"text": "Test Week Event 1",
- "id": "4",
+ "id": "1",
"event_pid": "",
"event_length": "300",
"rec_pattern": "week_2___0,1,2,3,4,5,6",
"rec_type": "week_2___0,1,2,3,4,5,6#no"
},
{
- "start_date": "2016-03-02 00:00:00",
+ "start_date": "2016-03-02 20:00:00",
"end_date": "2016-03-31 00:00:00",
"text": "Test Week Event 2",
- "id": "5",
+ "id": "2",
"event_pid": "",
"event_length": "300",
"rec_pattern": "week_1___1,3,4,5",
"rec_type": "week_1___1,3,4,5#17"
},
{
- "start_date": "2016-03-02 00:00:00",
+ "start_date": "2016-03-02 15:55:00",
"end_date": "2016-08-21 00:00:00",
"text": "Test Week Event 3",
- "id": "6",
+ "id": "3",
"event_pid": "",
- "event_length": "300",
+ "event_length": "600",
"rec_pattern": "week_3___1,3",
"rec_type": "week_3___1,3#"
}