CRM-12274
authorDonald A. Lobo <lobo@civicrm.org>
Tue, 23 Apr 2013 19:35:04 +0000 (12:35 -0700)
committerDonald A. Lobo <lobo@civicrm.org>
Tue, 23 Apr 2013 19:35:04 +0000 (12:35 -0700)
----------------------------------------
* CRM-12274: Merge activity tables into one unified table activity contact table
  http://issues.civicrm.org/jira/browse/CRM-12274

tests/phpunit/CRM/Activity/BAO/ActivityTest.php

index 05feb1497b460213e761b90c3e1c418f53f71402..a19fd531c9dde17a16d311e7abb9409412ae8a97 100644 (file)
@@ -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);