X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=tests%2Fphpunit%2FCRM%2FCore%2FBAO%2FRecurringEntityTest.php;h=7452e2cab1f5a74ed5a4a6786da609adb30b6511;hb=85265311ed16f2a6bdd26bc7c60903dc2cd903c7;hp=7ee88cefb4d299a684183c2042790f55017d71c3;hpb=7481d51b832ba89932216bcc67bedbc17d7fc651;p=civicrm-core.git diff --git a/tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php b/tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php index 7ee88cefb4..7452e2cab1 100644 --- a/tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php +++ b/tests/phpunit/CRM/Core/BAO/RecurringEntityTest.php @@ -187,7 +187,8 @@ class CRM_Core_BAO_RecurringEntityTest extends CiviUnitTestCase { //Create tell a friend for event $daoTellAFriend = new CRM_Friend_DAO_Friend(); $daoTellAFriend->entity_table = 'civicrm_event'; - $daoTellAFriend->entity_id = $daoEvent->id; // join with event + // join with event + $daoTellAFriend->entity_id = $daoEvent->id; $daoTellAFriend->title = 'Testing tell a friend'; $daoTellAFriend->is_active = 1; $daoTellAFriend->save(); @@ -297,7 +298,6 @@ class CRM_Core_BAO_RecurringEntityTest extends CiviUnitTestCase { $daoRecurEvent->id = $generatedEntities['civicrm_event'][$key]; if ($daoRecurEvent->find(TRUE)) { $daoRecurEvent->delete(); - $daoRecurEvent->free(); } //Check if this event_id was deleted