}
}
- _civicrm_api3_custom_format_params($params, $values, 'Membership');
-
if ($create) {
// CRM_Member_BAO_Membership::create() handles membership_start_date, membership_join_date,
// membership_end_date and membership_source. So, if $values contains
* @throws \CRM_Core_Exception
* @throws \CiviCRM_API3_Exception
*/
- public function setUp() {
+ public function setUp(): void {
parent::setUp();
$params = [
*
* @throws \CRM_Core_Exception
*/
- public function tearDown() {
+ public function tearDown(): void {
$tablesToTruncate = [
'civicrm_membership',
'civicrm_membership_log',
* Test Import.
*
* @throws \CRM_Core_Exception
+ * @throws \CiviCRM_API3_Exception
*/
public function testImport() {
$this->individualCreate();
* Test importing to a custom field.
*
* @throws \API_Exception
- * @throws \CRM_Core_Exception
+ * @throws \CRM_Core_Exception|\CiviCRM_API3_Exception
*/
- public function testImportCustomData() {
+ public function testImportCustomData(): void {
$donaldDuckID = $this->individualCreate(['first_name' => 'Donald', 'last_name' => 'Duck']);
$this->createCustomGroupWithFieldsOfAllTypes(['extends' => 'Membership']);
$membershipImporter = $this->createImportObject([