From 7e3920b267f8f5bb328d31fe8e3aa8f184bd30a0 Mon Sep 17 00:00:00 2001 From: Tim Otten Date: Mon, 17 Nov 2014 22:51:26 -0800 Subject: [PATCH] CRM-15578 - MailingTest::testMailerDeleteSuccess - Fix invalid "created_id" when run in bulk. --- tests/phpunit/api/v3/MailingTest.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/api/v3/MailingTest.php b/tests/phpunit/api/v3/MailingTest.php index c52728ff78..aa282b20bb 100755 --- a/tests/phpunit/api/v3/MailingTest.php +++ b/tests/phpunit/api/v3/MailingTest.php @@ -55,6 +55,7 @@ class api_v3_MailingTest extends CiviUnitTestCase { parent::setUp(); CRM_Mailing_BAO_MailingJob::$mailsProcessed = 0; // DGW $this->_contactIDs = array(); + $this->_contactIDs[] = $this->individualCreate(); $this->_groupID = $this->groupCreate(); $this->_groupIDs = array(); $this->_email = 'test@test.test'; @@ -62,7 +63,7 @@ class api_v3_MailingTest extends CiviUnitTestCase { 'subject' => 'maild', 'body_text' => "This is {contact.display_name}", 'name' => 'mailing name', - 'created_id' => 1, + 'created_id' => $this->_contactIDs[0], ); } -- 2.25.1