function testRetrieveMailchimpMemberExportFile() { $url = __DIR__ . '/../../sample_mailchimp_export.txt'; $url = 'file:///' . realpath($url); $list_id = 'MailchimpListsTestListA'; $file_path = CRM_CiviMailchimp_Utils::retrieveMailchimpMemberExportFile($url, $list_id); $this->assertFileExists($file_path); $this->assertFileEquals($url, $file_path); CRM_CiviMailchimp_Utils::deleteMailchimpMemberExportFile($file_path); $this->assertFileNotExists($file_path); }