From: Seamus Lee Date: Sat, 22 Apr 2017 05:24:06 +0000 (+1000) Subject: CRM-20308 Fix Test due to not truncating civicrm_email table X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=e88906fcda3ef5b6752f097cade78591b2ce0be2;p=civicrm-core.git CRM-20308 Fix Test due to not truncating civicrm_email table --- diff --git a/tests/phpunit/CRM/Activity/BAO/ActivityTest.php b/tests/phpunit/CRM/Activity/BAO/ActivityTest.php index 644e175b37..b8a91c3c68 100644 --- a/tests/phpunit/CRM/Activity/BAO/ActivityTest.php +++ b/tests/phpunit/CRM/Activity/BAO/ActivityTest.php @@ -11,7 +11,7 @@ class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase { public function tearDown() { // truncate a few tables - $tablesToTruncate = array('civicrm_contact', 'civicrm_activity', 'civicrm_activity_contact'); + $tablesToTruncate = array('civicrm_contact', 'civicrm_activity', 'civicrm_activity_contact', 'civicrm_email'); $this->quickCleanup($tablesToTruncate); } @@ -759,9 +759,7 @@ class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase { elseif (!empty($domainInfo['domain_email'])) { $expectedFromAddress = sprintf("%s <%s>", $domainInfo['name'], $domainInfo['domain_email']); } - // TODO: due to unknown reason the following assertion fails on - // test.civicrm.org test build but works fine on local - // $this->assertEquals($expectedFromAddress, $formAddress); + $this->assertEquals($expectedFromAddress, $formAddress); // ----------------------- End of Case 2 --------------------------- // TODO: Case 4 about checking the $formAddress on basis of logged contact ID respectively needs,