CRM-20308 Fix Test due to not truncating civicrm_email table
authorSeamus Lee <seamuslee001@gmail.com>
Sat, 22 Apr 2017 05:24:06 +0000 (15:24 +1000)
committerSeamus Lee <seamuslee001@gmail.com>
Sat, 22 Apr 2017 05:24:06 +0000 (15:24 +1000)
tests/phpunit/CRM/Activity/BAO/ActivityTest.php

index 644e175b375e94f576b5dc5c6839e37c806354eb..b8a91c3c689fee919699a35352d29bc1f51bf75f 100644 (file)
@@ -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,