From: yashodha Date: Thu, 30 May 2013 07:05:15 +0000 (+0530) Subject: test fix (CRM-12697) X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=b2e5605193a3acab789a8ea34b2e56e3a5aed47d;p=civicrm-core.git test fix (CRM-12697) --- diff --git a/tests/phpunit/CRM/Activity/BAO/ActivityTest.php b/tests/phpunit/CRM/Activity/BAO/ActivityTest.php index a71106feaf..b52b2b105b 100644 --- a/tests/phpunit/CRM/Activity/BAO/ActivityTest.php +++ b/tests/phpunit/CRM/Activity/BAO/ActivityTest.php @@ -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.');