Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ActivityTest - Update to pass on Standalone
Before ------ If you run this test on Standalone, it fails: like so ``` CRM_Activity_BAO_ActivityTest::testSendEmailWillReplaceTokensUniquelyForEachContact3 Exception: CRM_Core_Exception: "rename(/home/homer/buildkit/build/build-1/web/public/custom/test_email_create.txt, /home/homer/buildkit/build/build-1/web/private/attachment//test_email_create.txt): No such file or directory" #0 /home/homer/buildkit/build/build-1/web/core/CRM/Contact/Form/Task/EmailTrait.php(867): civicrm_api3("Activity", "create", (Array:9)) #1 /home/homer/buildkit/build/build-1/web/core/CRM/Contact/Form/Task/EmailTrait.php(788): CRM_Contact_Form_Task_Email->createEmailActivity(6, "subject:Mr. Joe Red II", "html:Mr. Joe Red II", "text:Mr. Joe Red II {$contact.first_name}", "", 1, (Array:1), NULL) ... After ----- Passes Comments -------- I believe this makes standalone behave the same way as Drupal. However, the underlying scenario is a bit weird -- it seems that `rename()` puts the file into the same place where it already is. Which is weird. If the purpose is to create an example file and put it through the same paces as day-to-day workflows, then you'd probably need to put the sample file somewhere else (like sys_get_temp_dir()).
- Loading branch information