Tests for GroupController.
More...
|
const | YAML_LOC = __DIR__ . '/../../../ui/api/documentation/openapi.yaml' |
|
Tests for GroupController.
Definition at line 42 of file GroupControllerTest.php.
◆ getGroupMembers()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::getGroupMembers |
( |
|
$userIds | ) |
|
|
private |
Generate array of group-members
- Parameters
-
array | $userIds | User ids to be generated |
- Returns
- array[]
Definition at line 133 of file GroupControllerTest.php.
◆ getResponseJson()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::getResponseJson |
( |
|
$response | ) |
|
|
private |
◆ getUsersWithGroup()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::getUsersWithGroup |
( |
|
$userIds | ) |
|
|
private |
Generate array of users-with-group
- Parameters
-
array | $userIds | User ids to be generated |
- Returns
- array[]
Definition at line 153 of file GroupControllerTest.php.
◆ setUp()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::setUp |
( |
| ) |
|
|
protected |
◆ tearDown()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::tearDown |
( |
| ) |
|
|
protected |
◆ testAddMemberUserAlreadyMember()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testAddMemberUserAlreadyMember |
( |
|
$version = ApiVersion::V2 | ) |
|
|
private |
◆ testAddMemberUserAlreadyMemberV1()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testAddMemberUserAlreadyMemberV1 |
( |
| ) |
|
◆ testAddMemberUserAlreadyMemberV2()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testAddMemberUserAlreadyMemberV2 |
( |
| ) |
|
◆ testAddMemberUserGroupAdminV1()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testAddMemberUserGroupAdminV1 |
( |
| ) |
|
◆ testAddMemberUserGroupAdminV2()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testAddMemberUserGroupAdminV2 |
( |
| ) |
|
◆ testAddMemberUserNotAdmin()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testAddMemberUserNotAdmin |
( |
|
$version = ApiVersion::V2 | ) |
|
|
private |
◆ testAddMemberUserNotAdminV1()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testAddMemberUserNotAdminV1 |
( |
| ) |
|
◆ testAddMemberUserNotAdminV2()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testAddMemberUserNotAdminV2 |
( |
| ) |
|
◆ testAddMemberUserNotMember()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testAddMemberUserNotMember |
( |
|
$version = ApiVersion::V2 | ) |
|
◆ testAddMemberUserNotMemberV1()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testAddMemberUserNotMemberV1 |
( |
| ) |
|
◆ testAddMemberUserNotMemberV2()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testAddMemberUserNotMemberV2 |
( |
| ) |
|
◆ testChangeUserPermission()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testChangeUserPermission |
( |
|
$version = ApiVersion::V2 | ) |
|
|
private |
◆ testChangeUserPermissionV1()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testChangeUserPermissionV1 |
( |
| ) |
|
- Test:
- Test GroupController::changeUserPermission() in version 1
- Check if the response is list of group members
Definition at line 583 of file GroupControllerTest.php.
◆ testChangeUserPermissionV2()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testChangeUserPermissionV2 |
( |
| ) |
|
- Test:
- Test GroupController::changeUserPermission() in version 2
- Check if the response is list of group members
Definition at line 574 of file GroupControllerTest.php.
◆ testDeleteGroup()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testDeleteGroup |
( |
|
$version = ApiVersion::V2 | ) |
|
|
private |
◆ testDeleteGroupV1()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testDeleteGroupV1 |
( |
| ) |
|
- Test:
- Test GroupController::deleteGroup() for valid delete request in version 1
- Check if response status is 202
Definition at line 177 of file GroupControllerTest.php.
◆ testDeleteGroupV2()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testDeleteGroupV2 |
( |
| ) |
|
- Test:
- Test GroupController::deleteGroup() for valid delete request in version 2
- Check if response status is 202
Definition at line 186 of file GroupControllerTest.php.
◆ testGetDeletableGroups()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testGetDeletableGroups |
( |
|
$version = ApiVersion::V2 | ) |
|
|
private |
◆ testGetDeletableGroupsV1()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testGetDeletableGroupsV1 |
( |
| ) |
|
◆ testGetDeletableGroupsV2()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testGetDeletableGroupsV2 |
( |
| ) |
|
◆ testGetGroupMembers()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testGetGroupMembers |
( |
|
$version = ApiVersion::V2 | ) |
|
|
private |
◆ testGetGroupMembersV1()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testGetGroupMembersV1 |
( |
| ) |
|
◆ testGetGroupMembersV2()
Fossology\UI\Api\Test\Controllers\GroupControllerTest::testGetGroupMembersV2 |
( |
| ) |
|
◆ $adminPlugin
M MockInterface Fossology\UI\Api\Test\Controllers\GroupControllerTest::$adminPlugin |
|
private |
◆ $assertCountBefore
integer Fossology\UI\Api\Test\Controllers\GroupControllerTest::$assertCountBefore |
|
private |
◆ $dbHelper
DbHelper Fossology\UI\Api\Test\Controllers\GroupControllerTest::$dbHelper |
|
private |
◆ $restHelper
RestHelper Fossology\UI\Api\Test\Controllers\GroupControllerTest::$restHelper |
|
private |
◆ YAML_LOC
string Fossology\UI\Api\Test\Controllers\GroupControllerTest::YAML_LOC = __DIR__ . '/../../../ui/api/documentation/openapi.yaml' |
The documentation for this class was generated from the following file: