test fix (CRM-12697)
authoryashodha <yashodha.chaku@webaccess.co.in>
Thu, 30 May 2013 07:05:15 +0000 (12:35 +0530)
committeryashodha <yashodha.chaku@webaccess.co.in>
Thu, 30 May 2013 07:05:15 +0000 (12:35 +0530)
tests/phpunit/CRM/Activity/BAO/ActivityTest.php

index a71106feaf63bad5925d8dfe5008dc7a93aa6bd2..b52b2b105b5c8211e3e2f3086bc2f3e986a19e0d 100644 (file)
@@ -132,7 +132,7 @@ class CRM_Activity_BAO_ActivityTest extends CiviUnitTestCase {
 
     $this->assertEquals($activity->subject, 'Scheduling Meeting', 'Verify activity subject is correct.');
     $this->assertEquals($activity->activity_type_id, 2, 'Verify activity type id is correct.');
-    $this->assertEquals($activity->source_contact_id, $contactId, 'Verify source contact id is correct.');
+    $this->assertEquals($defaults['source_contact_id'], $contactId, 'Verify source contact id is correct.');
 
     $this->assertEquals($defaults['subject'], 'Scheduling Meeting', 'Verify activity subject is correct.');
     $this->assertEquals($defaults['activity_type_id'], 2, 'Verify activity type id is correct.');