Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REF]dev/core#2517 Remove tests from core test suites relating to mem… #24342

Merged

Conversation

seamuslee001
Copy link
Contributor

…bership cancellation process and update extension unit tests to cover for gaps in testing

Overview

@eileenmcnaughton this should get rid of the other two found in #22686

Before

Core test suites have tests that depend on having the contributecancelactions extension installed

After

Core test suite doesn't rely on it anymore

…bership cancellation process and update extension unit tests to cover for gaps in testing
@civibot
Copy link

civibot bot commented Aug 22, 2022

(Standard links)

@civibot civibot bot added the master label Aug 22, 2022
$membership = $this->callAPISuccessGetSingle('Membership', ['contact_id' => $this->_contactID]);

//Assert membership status overrides when the contribution cancelled.
$this->assertEquals(TRUE, $membership['is_override']);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@eileenmcnaughton this seemed to be the only assertion that this test was providing that the extensions ' test CancelFromContributionForm wasn't

$form->buildForm();
$form->postProcess();

$this->callAPISuccessGetSingle('Activity', [
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Likewise this seemed to be the only part of this test that was not being checked by the same extension unit test @eileenmcnaughton

@eileenmcnaughton eileenmcnaughton merged commit 9b9c0c4 into civicrm:master Aug 22, 2022
@eileenmcnaughton eileenmcnaughton deleted the membership_cancel_tests_migrate branch August 22, 2022 06:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants