|
| testmakeAccessibleToGroup () |
|
| testDeletePermissionId () |
|
| testUpdatePermissionId () |
|
| testInsertPermission () |
|
| testGetPublicPermission () |
|
| testGetPermissionGroups () |
|
| testAccessibilityViaNone () |
|
| testAccessibilityViaGroup () |
|
| testAccessibilityViaPublicForUnqualifiedUser () |
|
| testAccessibilityViaPublicForQualifiedUser () |
|
| testIsEditable () |
|
| testIsAccessibleTrue () |
|
| testIsAccessibleFalse () |
|
|
| $testDb |
|
| $dbManager |
|
| $uploadPermissionDao |
|
Definition at line 17 of file UploadPermissionDaoTest.php.
◆ testIsAccessibleFalse()
Fossology\Lib\Dao\UploadPermissionDaoTest::testIsAccessibleFalse |
( |
| ) |
|
- Test:
- Test to verify access permissions for an upload using UploadPermissionDao::isAccessible().
- Insert a permission with no access (PERM_NONE) for a user (user ID: 2).
- Ensure that the isAccessible() method correctly returns false when no permission is granted.
Definition at line 213 of file UploadPermissionDaoTest.php.
◆ testIsAccessibleTrue()
Fossology\Lib\Dao\UploadPermissionDaoTest::testIsAccessibleTrue |
( |
| ) |
|
- Test:
- Test to verify that access is granted when the correct permission is set using UploadPermissionDao::isAccessible().
- Insert a write permission (PERM_WRITE) for a user (user ID: 2) and upload (upload ID: 3).
- Ensure that the isAccessible() method returns true when the user has write access.
Definition at line 197 of file UploadPermissionDaoTest.php.
◆ testIsEditable()
Fossology\Lib\Dao\UploadPermissionDaoTest::testIsEditable |
( |
| ) |
|
- Test:
- Test to check if a user can edit an upload UploadPermissionDao::isEditable()
- Set the user's permission level to PERM_WRITE
- Check if the user has the correct permission to edit the upload
Definition at line 181 of file UploadPermissionDaoTest.php.
The documentation for this class was generated from the following file: