mirror of
https://github.com/alextselegidis/easyappointments.git
synced 2024-11-10 01:52:22 +03:00
Created structure for unit tests.
This commit is contained in:
parent
a624e53e97
commit
0c1b504f56
3 changed files with 52 additions and 0 deletions
20
test/php/engine/Api/V1/AuthorizationTest.php
Normal file
20
test/php/engine/Api/V1/AuthorizationTest.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* Easy!Appointments - Open Source Web Scheduler
|
||||
*
|
||||
* @package EasyAppointments
|
||||
* @author A.Tselegidis <alextselegidis@gmail.com>
|
||||
* @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 {
|
||||
|
||||
}
|
20
test/php/engine/Api/V1/ResponseTest.php
Normal file
20
test/php/engine/Api/V1/ResponseTest.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php
|
||||
|
||||
/* ----------------------------------------------------------------------------
|
||||
* Easy!Appointments - Open Source Web Scheduler
|
||||
*
|
||||
* @package EasyAppointments
|
||||
* @author A.Tselegidis <alextselegidis@gmail.com>
|
||||
* @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 {
|
||||
|
||||
}
|
12
test/php/engine/Api/V1/fixtures/appointment.json
Normal file
12
test/php/engine/Api/V1/fixtures/appointment.json
Normal file
|
@ -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
|
||||
}
|
Loading…
Reference in a new issue