View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0004020 | Composr testing platform / automation goals | [All Projects] General / Uncategorised | public | 2019-12-28 22:25 | 2020-03-08 02:43 |
Reporter | Chris Graham | Assigned To | Chris Graham | ||
Severity | Feature-request | ||||
Status | resolved | Resolution | fixed | ||
Summary | 0004020: Points unit test | ||||
Description | There is currently no direct unit testing for the points system. Test giving points ('give_points' function) to member 0000002 and that those points raise what the API claims are the total points for that member by the expected amount. Test that 'get_gift_points_used' goes up for get_member() as expected and 'get_gift_points_to_give' goes down as expected. Test creating a forum post by member 0000002 and that the total points is also raised as expected. Test 'system_gift_transfer' also gives points as expected. As above, but a negative transfer takes as expected. Test 'charge_member' deducts points as expected. As above, but a negative charge gives as expected. Modify the 'give_points' function to return the ID number of the new gifts table record. Then test that after giving points using 'give_points' and then calling the 'reverse_point_gift_transaction' function on the returned ID, that the points total is unchanged from where it started. | ||||
Additional Information | This should do a fairly broad testing that the points system is doing the basic things expected. You could go much deeper, but that would require refactoring the code to be more testable and is not worth it at this advanced stage IMO. | ||||
Tags | Roadmap: v11 | ||||
Time estimation (hours) | 1 | ||||
Sponsorship open | |||||
Date Modified | Username | Field | Change |
---|---|---|---|
2019-12-28 22:25 | Chris Graham | New Issue | |
2019-12-28 22:25 | Chris Graham | Status | non-assigned => assigned |
2019-12-28 22:25 | Chris Graham | Assigned To | => Patrick Schmalstig |
2019-12-28 22:25 | Chris Graham | Tag Attached: Roadmap: v11 | |
2020-03-07 15:17 | Patrick Schmalstig | Assigned To | Patrick Schmalstig => Chris Graham |
2020-03-08 02:43 | Chris Graham | Status | assigned => resolved |
2020-03-08 02:43 | Chris Graham | Resolution | open => fixed |
2023-02-26 18:29 | Chris Graham | Category | General => General / Uncategorised |