Some starting tasks and thoughts
- All the directory paths below are given assuming you're in tests/phpunit directory.
- Open api/v2/ActivityTest.php and api/v2/ContactTest.php in your editor window and keep it open throughout your work - it contains good examples that can be referred to!
- Open PhpUnit documentation in your browser window and refer to it all the time - it can save you quite a lot of work (list of assert methods can be especially useful).
Simple learning assignments:
Provide testing coverage for CRM_Activity_BAO_ActivityAssignment
- removeAssignment - add the test named testRemoveAssignment in CRM/Activity/BAO/ActivityAssignmentTest.php
- retrieveAssigneeIdsByActivityId - add the test named testRetrieveAssigneeIdsByActivityId in CRM/Activity/BAO/ActivityAssignmentTest.php
- getAssigneeNames - add the test named testGetAssigneeNames in CRM/Activity/BAO/ActivityAssignmentTest.php
- Provide testing coverage for CRM_Activity_BAO_ActivityTarget
- removeTarget - add the test named testRemoveTarget in CRM/Activity/BAO/ActivityTargetTest.php
- retrieveTargetIdsByActivityId - add the test named testRetrieveTargetIdsByActivityId in CRM/Activity/BAO/ActivityTargetTest.php
- getTargetNames - add the test named testGetTargetNames in CRM/Activity/BAO/ActivityTargetTest.php
- Provide testing coverage for CRM_Contact_BAO_GroupContact
- add - add the test named testAdd in CRM/Contact/BAO/GroupContactTest.php
- getGroupId - add the test named testGetGroupId in CRM/Contact/BAO/GroupContactTest.php
- Provide testing coverage for CRM_Contribute_BAO_Premium
Provide testing coverage for selected methods in CRM_Pledge_BAO_Payment
- add - add the test named testAdd in CRM/Pledge/BAO/PaymentTestTest.php
- retrieve - add the test named testRetrieve in CRM/Pledge/BAO/PaymentTestTest.php
- deletePayments - add the test named testAdd in CRM/Pledge/BAO/PaymentTestTest.php
- (slightly more advanced) Provide full testing coverage for CRM_Contribute_BAO_ContributionRecur
PRovide testing coverage for selected method in CRM_Contribute_BAO_PCP
- add - add two tests named testAddWithPCPBlockTrue and testAddWithPCPBlockFalse - take a look at the condition statement in the code to understand why - you'll need to check for both scenarios!
Advanced assignments:
- Provide full coverage for CRM_Event_BAO_ParticipantStatusType - cover all the methods!
- Provide full coverage for CRM_Core_BAO_PaymentProcessorType - cover all the methods!
- Provide full coverage for CRM_Core_BAO_Discount - cover all the methods!
- Provide the coverage for CRM_Core_BAO_Location::copyLocBlock - add the test named testCopyLocBlock in CRM/Core/BAO/LocationTest.php
Expert assignments:
- Provide full coverage for CRM_Pledge_BAO_PledgeBlock - cover all the methods!
- Extend the coverage for CRM_Core_BAO_CustomGroup::getTree
Labels
