From f1c7b1f0297186058fccbd6fcdf39c21ce609b34 Mon Sep 17 00:00:00 2001 From: "Donald A. Lobo" Date: Tue, 23 Apr 2013 12:35:04 -0700 Subject: [PATCH] CRM-12274 ---------------------------------------- * CRM-12274: Merge activity tables into one unified table activity contact table http://issues.civicrm.org/jira/browse/CRM-12274 --- .../phpunit/CRM/Activity/BAO/ActivityTest.php | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tests/phpunit/CRM/Activity/BAO/ActivityTest.php b/tests/phpunit/CRM/Activity/BAO/ActivityTest.php index 05feb1497b..a19fd531c9 100644 --- a/tests/phpunit/CRM/Activity/BAO/ActivityTest.php +++ b/tests/phpunit/CRM/Activity/BAO/ActivityTest.php @@ -122,8 +122,8 @@ class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase { 'subject', 'Database check for created activity.' ); - $activityTargetId = $this->assertDBNotNull('CRM_Activity_DAO_ActivityTarget', $targetContactId, - 'id', 'target_contact_id', + $activityTargetId = $this->assertDBNotNull('CRM_Activity_DAO_ActivityContact', $targetContactId, + 'id', 'contact_id', 'Database check for created activity target.' ); @@ -171,8 +171,8 @@ class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase { 'subject', 'Database check for created activity.' ); - $activityTargetId = $this->assertDBNotNull('CRM_Activity_DAO_ActivityTarget', $targetContactId, - 'id', 'target_contact_id', + $activityTargetId = $this->assertDBNotNull('CRM_Activity_DAO_ActivityContact', $targetContactId, + 'id', 'contact_id', 'Database check for created activity target.' ); $params = array( @@ -217,15 +217,15 @@ class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase { 'subject', 'Database check for created activity.' ); - $activityTargetId = $this->assertDBNotNull('CRM_Activity_DAO_ActivityTarget', $targetContactId, - 'id', 'target_contact_id', + $activityTargetId = $this->assertDBNotNull('CRM_Activity_DAO_ActivityContact', $targetContactId, + 'id', 'contact_id', 'Database check for created activity target.' ); CRM_Activity_BAO_Activity::deleteActivityTarget($activityId); - $this->assertDBNull('CRM_Activity_DAO_ActivityTarget', $targetContactId, 'id', - 'target_contact_id', 'Database check for deleted activity target.' + $this->assertDBNull('CRM_Activity_DAO_ActivityContact', $targetContactId, 'id', + 'contact_id', 'Database check for deleted activity target.' ); Contact::delete($contactId); @@ -258,15 +258,15 @@ class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase { 'subject', 'Database check for created activity.' ); - $activityAssignmentId = $this->assertDBNotNull('CRM_Activity_DAO_ActivityAssignment', - $assigneeContactId, 'id', 'target_contact_id', + $activityAssignmentId = $this->assertDBNotNull('CRM_Activity_DAO_ActivityContact', + $assigneeContactId, 'id', 'contact_id', 'Database check for created activity assignment.' ); CRM_Activity_BAO_Activity::deleteActivityAssignment($activityId); - $this->assertDBNull('CRM_Activity_DAO_ActivityAssignment', $assigneeContactId, 'id', - 'assignee_contact_id', 'Database check for deleted activity assignment.' + $this->assertDBNull('CRM_Activity_DAO_ActivityContact', $assigneeContactId, 'id', + 'contact_id', 'Database check for deleted activity assignment.' ); Contact::delete($contactId); -- 2.25.1