-
-
Notifications
You must be signed in to change notification settings - Fork 825
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Note auto_renew seems un-exportable so I removed it from return properties
- Loading branch information
1 parent
f39da48
commit 444cf08
Showing
8 changed files
with
56 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -148,14 +148,19 @@ public function testImport() { | |
$this->assertEquals(2, $result['count']); | ||
} | ||
|
||
/** | ||
* Test overriding a membership but not providing status. | ||
* | ||
* @throws \CRM_Core_Exception | ||
*/ | ||
public function testImportOverriddenMembershipButWithoutStatus() { | ||
$this->individualCreate(['email' => '[email protected]']); | ||
|
||
$fieldMapper = [ | ||
'mapper[0][0]' => 'email', | ||
'mapper[1][0]' => 'membership_type_id', | ||
'mapper[2][0]' => 'membership_start_date', | ||
'mapper[3][0]' => 'is_override', | ||
'mapper[3][0]' => 'member_is_override', | ||
]; | ||
$membershipImporter = new CRM_Member_Import_Parser_Membership($fieldMapper); | ||
$membershipImporter->init(); | ||
|
@@ -184,7 +189,7 @@ public function testImportOverriddenMembershipWithStatus() { | |
'email', | ||
'membership_type_id', | ||
'membership_start_date', | ||
'is_override', | ||
'member_is_override', | ||
'status_id', | ||
]); | ||
|
||
|
@@ -207,7 +212,7 @@ public function testImportOverriddenMembershipWithValidOverrideEndDate() { | |
'mapper[0][0]' => 'email', | ||
'mapper[1][0]' => 'membership_type_id', | ||
'mapper[2][0]' => 'membership_start_date', | ||
'mapper[3][0]' => 'is_override', | ||
'mapper[3][0]' => 'member_is_override', | ||
'mapper[4][0]' => 'status_id', | ||
'mapper[5][0]' => 'status_override_end_date', | ||
]; | ||
|
@@ -235,7 +240,7 @@ public function testImportOverriddenMembershipWithInvalidOverrideEndDate() { | |
'mapper[0][0]' => 'email', | ||
'mapper[1][0]' => 'membership_type_id', | ||
'mapper[2][0]' => 'membership_start_date', | ||
'mapper[3][0]' => 'is_override', | ||
'mapper[3][0]' => 'member_is_override', | ||
'mapper[4][0]' => 'status_id', | ||
'mapper[5][0]' => 'status_override_end_date', | ||
]; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters