]> BookStack Code Mirror - bookstack/blobdiff - tests/Api/UsersApiTest.php
Added tests for not-yet-built role API endpoints
[bookstack] / tests / Api / UsersApiTest.php
index c89f9e6e30b83e26154f99174c59d86519393daa..fadd2610c9b99581663276181541a319fe71c8d8 100644 (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 */