mirror of
https://github.com/BookStackApp/BookStack.git
synced 2024-08-28 21:22:30 +00:00
16 lines
275 B
PHP
16 lines
275 B
PHP
![]() |
<?php
|
||
|
|
||
|
namespace Tests;
|
||
|
|
||
|
trait TestsApi
|
||
|
{
|
||
|
|
||
|
protected $apiTokenId = 'apitoken';
|
||
|
protected $apiTokenSecret = 'password';
|
||
|
|
||
|
protected function errorResponse(string $messge, int $code)
|
||
|
{
|
||
|
return ["error" => ["code" => $code, "message" => $messge]];
|
||
|
}
|
||
|
|
||
|
}
|