![]() |
FOSSology
4.7.1
Open Source License Compliance by Open Source Software
|
Test for UploadPermissionPage::insertPermission(), covering the broken upload membership check fix @runTestsInSeparateProcesses @preserveGlobalState disabled. More...


Public Member Functions | |
| testRejectsUploadNotInAccessibleList () | |
| testGrantsPermissionForUploadInAccessibleList () | |
| testRejectsWhenAccessibleListIsEmpty () | |
Protected Member Functions | |
| setUp () | |
| tearDown () | |
Private Member Functions | |
| accessibleUploadList () | |
Private Attributes | |
| $assertCountBefore | |
| $page | |
Test for UploadPermissionPage::insertPermission(), covering the broken upload membership check fix @runTestsInSeparateProcesses @preserveGlobalState disabled.
Regression coverage for: insertPermission() must confirm the target upload id is actually present in the caller's accessible upload list, not merely that the list is non-empty. Before the fix, the loop only checked truthiness of each entry's own upload_pk, so any non-empty but unrelated list let the caller change permissions on an arbitrary upload id they were never shown to have access to.
Definition at line 32 of file UploadPermissionPageTest.php.
| UploadPermissionPageTest::testGrantsPermissionForUploadInAccessibleList | ( | ) |
Definition at line 106 of file UploadPermissionPageTest.php.
| UploadPermissionPageTest::testRejectsUploadNotInAccessibleList | ( | ) |
Definition at line 85 of file UploadPermissionPageTest.php.
| UploadPermissionPageTest::testRejectsWhenAccessibleListIsEmpty | ( | ) |
Definition at line 127 of file UploadPermissionPageTest.php.