1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-28 17:02:04 +03:00

Added testing coverage to API token auth

This commit is contained in:
Dan Brown
2019-12-30 19:42:46 +00:00
parent 6f1b88a6a6
commit 3d11cba223
8 changed files with 126 additions and 7 deletions

16
tests/TestsApi.php Normal file
View File

@ -0,0 +1,16 @@
<?php
namespace Tests;
trait TestsApi
{
protected $apiTokenId = 'apitoken';
protected $apiTokenSecret = 'password';
protected function errorResponse(string $messge, int $code)
{
return ["error" => ["code" => $code, "message" => $messge]];
}
}