View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
16919 | Bug reports | Other | public | 2020-12-22 16:22 | 2021-03-10 21:12 |
Reporter | ollehar | Assigned To | ollehar | ||
Priority | none | Severity | partial_block | ||
Status | assigned | Resolution | open | ||
Product Version | 4.0.0dev | ||||
Target Version | 4.x.0-dev | ||||
Summary | 16919: Missing test suite for survey group permissions | ||||
Description | List of missing tests:
| ||||
Tags | No tags attached. | ||||
Bug heat | 4 | ||||
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 | - | ||||
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 :
|
|
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 |