]> BookStack Code Mirror - bookstack/blob - tests/TestsApi.php
Added testing coverage to API token auth
[bookstack] / tests / TestsApi.php
1 <?php
2
3 namespace Tests;
4
5 trait TestsApi
6 {
7
8     protected $apiTokenId = 'apitoken';
9     protected $apiTokenSecret = 'password';
10
11     protected function errorResponse(string $messge, int $code)
12     {
13         return ["error" => ["code" => $code, "message" => $messge]];
14     }
15
16 }