View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 16919 | Bug reports | Other | public | 2020-12-22 16:22 | 2026-10-13 11:50 |
| Reporter | ollehar | Assigned To | c_schmitz | ||
| Priority | none | Severity | partial_block | ||
| Status | closed | Resolution | fixed | ||
| Product Version | 4.0.0dev | ||||
| Summary | 16919: Missing test suite for survey group permissions | ||||
| Description | List of missing tests:
| ||||
| Tags | No tags attached. | ||||
| Bug heat | 8 | ||||
| Complete LimeSurvey version number (& build) | latest dev | ||||
| I will donate to the project if issue is resolved | No | ||||
| Browser | - | ||||
| Database type & version | - | ||||
| Server OS (if known) | - | ||||
| Webserver software & version (if known) | - | ||||
| PHP Version | - | ||||
| Git branch / Pull Request URL | |||||
|
My opinion : we must start by a simple "Global settings" update Permission test suite ? |
|
|
Well, our current approach was to grow a test suite from new features. That was my idea, at least. But should be collaborative effort by contributors and core GmbH team. |
|
|
PS : i don't mind of new form action test … |
|
Yes, i understand : and it's in my todo list since month to add SurveysGroup permission checker when there are a solution to do action other than superadmin :) But you are right : i didn't mind of GUI test suite here … |
|
|
Update category (clearly not encryption here) |
|
|
@ollehar : i can easily add Survey permision checker
Maybe i try an update of login user id directly in session ? |
|
To make a test for this without database, you need to take the controller action and rip out everything that's not related to database or request parsing, and put it in a service class with injection or possibility to mock. In other words, business logic should be in service classes to be testable. :) But, let me merge your PR first and have a look. |
|
|
Then : mock Permission->save() and check if data sent via our mocked POST was in save data ? And even if Permission->save happen for specific permission … To mock :
|
|
|
Fix committed to master branch: http://bugs.limesurvey.org/plugin.php?page=Source/view&id=40801 |
|
|
Fixed in Release 7.6.0+261013 |
|
|
LimeSurvey: master 9049efcc 2026-10-12 20:15 Details Diff |
Fixed issue 16919: Survey group owner field was not covered by tests Dev Added SurveysGroupsOwnerTest for owner on create and owner change restriction on update |
Affected Issues 16919 |
|
| add - tests/unit/controllers/SurveysGroupsOwnerTest.php | Diff File | ||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2020-12-22 16:22 | ollehar | New Issue | |
| 2020-12-22 16:22 | ollehar | Relationship added | related to 16440 |
| 2020-12-22 16:22 | ollehar | Assigned To | => DenisChenu |
| 2020-12-22 16:22 | ollehar | Status | new => assigned |
| 2020-12-22 16:23 | ollehar | Description Updated | |
| 2020-12-22 16:24 | ollehar | Assigned To | DenisChenu => ollehar |
| 2020-12-22 16:28 | DenisChenu | Note Added: 61042 | |
| 2020-12-22 16:31 | ollehar | Note Added: 61043 | |
| 2020-12-22 16:55 | DenisChenu | Note Added: 61044 | |
| 2020-12-22 18:15 | DenisChenu | Note Added: 61053 | |
| 2021-01-13 08:50 | DenisChenu | Category | Encryption => Other |
| 2021-01-13 08:50 | DenisChenu | Note Added: 61514 | |
| 2021-01-13 08:53 | DenisChenu | Note Added: 61515 | |
| 2021-01-13 10:25 | ollehar | Note Added: 61518 | |
| 2021-01-13 10:33 | DenisChenu | Note Added: 61522 | |
| 2021-03-10 21:12 | ollehar | Product Version | => 4.0.0dev |
| 2026-10-12 20:16 | c_schmitz | Changeset attached | => LimeSurvey master 9049efcc |
| 2026-10-12 20:16 | c_schmitz | Note Added: 86346 | |
| 2026-10-12 20:16 | c_schmitz | Assigned To | ollehar => c_schmitz |
| 2026-10-12 20:16 | c_schmitz | Status | assigned => resolved |
| 2026-10-12 20:16 | c_schmitz | Resolution | open => fixed |
| 2026-10-12 20:16 | c_schmitz | Bug heat | 4 => 6 |
| 2026-10-13 11:50 | LimeBot | Note Added: 86418 | |
| 2026-10-13 11:50 | LimeBot | Status | resolved => closed |
| 2026-10-13 11:50 | LimeBot | Bug heat | 6 => 8 |