From 0c1b504f56d69667d0890b2e4631cac271752384 Mon Sep 17 00:00:00 2001 From: Alex Tselegidis Date: Fri, 8 Jul 2016 21:42:51 +0200 Subject: [PATCH] Created structure for unit tests. --- test/php/engine/Api/V1/AuthorizationTest.php | 20 +++++++++++++++++++ test/php/engine/Api/V1/ResponseTest.php | 20 +++++++++++++++++++ .../engine/Api/V1/fixtures/appointment.json | 12 +++++++++++ 3 files changed, 52 insertions(+) create mode 100644 test/php/engine/Api/V1/AuthorizationTest.php create mode 100644 test/php/engine/Api/V1/ResponseTest.php create mode 100644 test/php/engine/Api/V1/fixtures/appointment.json diff --git a/test/php/engine/Api/V1/AuthorizationTest.php b/test/php/engine/Api/V1/AuthorizationTest.php new file mode 100644 index 00000000..7878b5b4 --- /dev/null +++ b/test/php/engine/Api/V1/AuthorizationTest.php @@ -0,0 +1,20 @@ + + * @copyright Copyright (c) 2013 - 2016, Alex Tselegidis + * @license http://opensource.org/licenses/GPL-3.0 - GPLv3 + * @link http://easyappointments.org + * @since v1.2.0 + * ---------------------------------------------------------------------------- */ + +namespace \EA\Engine\Api\V1; + +use PHPUnit\Framework\TestCase; + +class AuthorizationTest extends \TestCase { + +} diff --git a/test/php/engine/Api/V1/ResponseTest.php b/test/php/engine/Api/V1/ResponseTest.php new file mode 100644 index 00000000..5a85ea3e --- /dev/null +++ b/test/php/engine/Api/V1/ResponseTest.php @@ -0,0 +1,20 @@ + + * @copyright Copyright (c) 2013 - 2016, Alex Tselegidis + * @license http://opensource.org/licenses/GPL-3.0 - GPLv3 + * @link http://easyappointments.org + * @since v1.2.0 + * ---------------------------------------------------------------------------- */ + +namespace \EA\Engine\Api\V1; + +use PHPUnit\Framework\TestCase; + +class ResponseTest extends TestCase { + +} diff --git a/test/php/engine/Api/V1/fixtures/appointment.json b/test/php/engine/Api/V1/fixtures/appointment.json new file mode 100644 index 00000000..140f98e7 --- /dev/null +++ b/test/php/engine/Api/V1/fixtures/appointment.json @@ -0,0 +1,12 @@ +{ + "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", + "customerId": 56, + "providerId": 4, + "serviceId": 7, + "notes": "These are some test notes.", + "googleCalendarId": 9834 +}