Changes between Initial Version and Version 1 of Ticket #7218, comment 31
- Timestamp:
- 06/16/2017 08:07:52 PM (8 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #7218, comment 31
initial v1 4 4 5 5 Individual classes ensures that we only load the code we need to run when we hit a specific action. 6 7 > It would also prevent us from doing lots of logic inside of a __construct() method, which makes it easier to imagine writing tests for these at some point in the future. 8 9 For writing tests, we could pass parameters to the constructor. I did these for a few of the activity classes because some of the functions like `bp_activity_action_delete_activity()` required a return value.