Skip to content

Commit

Permalink
Opt out financial checking on membership_payment test & acl test
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Jul 26, 2021
1 parent 6e87fe1 commit 27355f0
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/phpunit/api/v3/ACLPermissionTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,16 @@ class api_v3_ACLPermissionTest extends CiviUnitTestCase {

use Civi\Test\ACLPermissionTrait;

/**
* Should financials be checked after the test but before tear down.
*
* The setup methodology in this class bypasses valid financial creation
* so we don't check.
*
* @var bool
*/
protected $isValidateFinancialsOnPostAssert = FALSE;

public $DBResetRequired = FALSE;
protected $_entity;

Expand Down
11 changes: 11 additions & 0 deletions tests/phpunit/api/v3/MembershipPaymentTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,17 @@ class api_v3_MembershipPaymentTest extends CiviUnitTestCase {
protected $_membershipStatusID;
protected $_contribution = [];

/**
* Should financials be checked after the test but before tear down.
*
* This test class is opted out as this method should not be called outside
* of the LineItem::create function and the test is artificial & not creating
* valid financials.
*
* @var bool
*/
protected $isValidateFinancialsOnPostAssert = FALSE;

public function setUp(): void {
parent::setUp();
$this->useTransaction(TRUE);
Expand Down

0 comments on commit 27355f0

Please sign in to comment.