Skip to content

Commit

Permalink
[TEST] add assert to ensure nullArray & nullObject are not contaminated
Browse files Browse the repository at this point in the history
  • Loading branch information
eileenmcnaughton committed Jun 15, 2019
1 parent 583a991 commit eebff7f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/phpunit/CiviTest/CiviUnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -482,6 +482,8 @@ protected function tearDown() {

$this->cleanTempDirs();
$this->unsetExtensionSystem();
$this->assertEquals([], CRM_Core_DAO::$_nullArray);
$this->assertEquals(NULL, CRM_Core_DAO::$_nullObject);
}

/**
Expand Down
1 change: 1 addition & 0 deletions tests/phpunit/api/v3/ContributionPageTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ public function tearDown() {
$this->callAPISuccess('contact', 'delete', array('id' => $id));
}
$this->quickCleanUpFinancialEntities();
parent::tearDown();
}

/**
Expand Down

0 comments on commit eebff7f

Please sign in to comment.