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

Added tests for not-yet-built role API endpoints

This commit is contained in:
Dan Brown
2023-02-18 13:51:18 +00:00
parent fd45d280b4
commit 55456a57d6
4 changed files with 234 additions and 5 deletions

View File

@ -15,9 +15,9 @@ class UsersApiTest extends TestCase
{
use TestsApi;
protected $baseEndpoint = '/api/users';
protected string $baseEndpoint = '/api/users';
protected $endpointMap = [
protected array $endpointMap = [
['get', '/api/users'],
['post', '/api/users'],
['get', '/api/users/1'],
@ -47,7 +47,7 @@ class UsersApiTest extends TestCase
}
}
public function test_index_endpoint_returns_expected_shelf()
public function test_index_endpoint_returns_expected_user()
{
$this->actingAsApiAdmin();
/** @var User $firstUser */