diff --git a/test/php/engine/Api/V1/fixtures/admin.json b/test/php/engine/Api/V1/fixtures/admin.json new file mode 100644 index 00000000..9e5d98aa --- /dev/null +++ b/test/php/engine/Api/V1/fixtures/admin.json @@ -0,0 +1,16 @@ +{ + "id": 143, + "firstname": "Chris", + "lastname": "Doe", + "email": "chris@doe.com", + "mobile": "012345679-0", + "phone": "0123456789-1", + "address": "Some Str. 123", + "city": "Some City", + "zip": "12345", + "notes": "Test admin notes.", + "settings":{ + "username":"chrisdoe", + "notifications": true + } +} diff --git a/test/php/engine/Api/V1/fixtures/appointment.json b/test/php/engine/Api/V1/fixtures/appointment.json index 140f98e7..bb220cba 100644 --- a/test/php/engine/Api/V1/fixtures/appointment.json +++ b/test/php/engine/Api/V1/fixtures/appointment.json @@ -2,11 +2,11 @@ "id": 1, "hash": "asdf809a8sdf987a9d8f7", "book": "2016-07-08 12:57:00", - "start": "2016-07-08 12:57:00", - "end": "2016-07-08 12:57:00", + "start": "2016-07-08 18:00:00", + "end": "2016-07-08 18:30:00", + "notes": "These are some test notes.", "customerId": 56, "providerId": 4, "serviceId": 7, - "notes": "These are some test notes.", - "googleCalendarId": 9834 + "googleCalendarId": 134 } diff --git a/test/php/engine/Api/V1/fixtures/customer.json b/test/php/engine/Api/V1/fixtures/customer.json new file mode 100644 index 00000000..6bbb7b18 --- /dev/null +++ b/test/php/engine/Api/V1/fixtures/customer.json @@ -0,0 +1,12 @@ +{ + "id": 97, + "firstname": "John", + "lastname": "Doe", + "email": "john@doe.com", + "mobile": "012345679-0", + "phone": "0123456789-1", + "address": "Some Str. 123", + "city": "Some City", + "zip": "12345", + "notes": "Test customer notes." +} diff --git a/test/php/engine/Api/V1/fixtures/provider.json b/test/php/engine/Api/V1/fixtures/provider.json new file mode 100644 index 00000000..7140e476 --- /dev/null +++ b/test/php/engine/Api/V1/fixtures/provider.json @@ -0,0 +1,71 @@ +{ + "id": 143, + "firstname": "Chloe", + "lastname": "Doe", + "email": "chloe@doe.com", + "mobile": "012345679-0", + "phone": "0123456789-1", + "address": "Some Str. 123", + "city": "Some City", + "zip": "12345", + "notes": "Test provider notes.", + "services": [ + 1, + 5, + 9 + ], + "settings":{ + "username": "chloedoe", + "notifications":true, + "googleSync":true, + "googleCalendar": "calendar-id", + "googleToken": "23897dfasdf7a98gas98d9", + "syncFutureDays":10, + "syncPastDays":10, + "workingPlan":{ + "monday":{ + "start": "09:00", + "end": "18:00", + "breaks":[ + { + "start": "14:30", + "end": "15:00" + } + ] + }, + "tuesday":{ + "start": "09:00", + "end": "18:00", + "breaks":[ + { + "start": "14:30", + "end": "15:00" + } + ] + }, + "wednesday":null, + "thursday":{ + "start": "09:00", + "end": "18:00", + "breaks":[ + { + "start": "14:30", + "end": "15:00" + } + ] + }, + "friday":{ + "start": "09:00", + "end": "18:00", + "breaks":[ + { + "start": "14:30", + "end": "15:00" + } + ] + }, + "saturday":null, + "sunday":null + } + } +} diff --git a/test/php/engine/Api/V1/fixtures/secretary.json b/test/php/engine/Api/V1/fixtures/secretary.json new file mode 100644 index 00000000..abd00ac6 --- /dev/null +++ b/test/php/engine/Api/V1/fixtures/secretary.json @@ -0,0 +1,20 @@ +{ + "id": 143, + "firstname": "Chris", + "lastname": "Doe", + "email": "chris@doe.com", + "mobile": "012345679-0", + "phone": "0123456789-1", + "address": "Some Str. 123", + "city": "Some City", + "zip": "12345", + "notes": "Test secretary notes.", + "providers": [ + 53, + 17 + ], + "settings":{ + "username":"chrisdoe", + "notifications": true + } +} diff --git a/test/php/engine/Api/V1/fixtures/service.json b/test/php/engine/Api/V1/fixtures/service.json new file mode 100644 index 00000000..455243d9 --- /dev/null +++ b/test/php/engine/Api/V1/fixtures/service.json @@ -0,0 +1,9 @@ +{ + "id": 74, + "name": "Male Haircut", + "duration": 60, + "price": 10.00, + "currency": "Euro", + "description": "Male haircut trends.", + "categoryId": null +} diff --git a/test/php/engine/Api/V1/fixtures/setting.json b/test/php/engine/Api/V1/fixtures/setting.json new file mode 100644 index 00000000..c45fe3c1 --- /dev/null +++ b/test/php/engine/Api/V1/fixtures/setting.json @@ -0,0 +1,5 @@ +{ + "id": 1, + "name": "book_advance_timeout", + "value": "100" +} diff --git a/test/php/engine/Api/V1/fixtures/unavailability.json b/test/php/engine/Api/V1/fixtures/unavailability.json new file mode 100644 index 00000000..a40f74d1 --- /dev/null +++ b/test/php/engine/Api/V1/fixtures/unavailability.json @@ -0,0 +1,9 @@ +{ + "id": 1, + "book": "2016-07-08 12:57:00", + "start": "2016-07-08 18:00:00", + "end": "2016-07-08 18:30:00", + "notes": "These are some test notes.", + "providerId": 4, + "googleCalendarId": 474 +}