phpcs - Fix error, "Visibility must be declared on method"
[civicrm-core.git] / tests / phpunit / WebTest / Pledge / ContactContextPledgePaymentAddTest.php
1 <?php
2 /*
3 +--------------------------------------------------------------------+
4 | CiviCRM version 4.6 |
5 +--------------------------------------------------------------------+
6 | Copyright CiviCRM LLC (c) 2004-2014 |
7 +--------------------------------------------------------------------+
8 | This file is a part of CiviCRM. |
9 | |
10 | CiviCRM is free software; you can copy, modify, and distribute it |
11 | under the terms of the GNU Affero General Public License |
12 | Version 3, 19 November 2007 and the CiviCRM Licensing Exception. |
13 | |
14 | CiviCRM is distributed in the hope that it will be useful, but |
15 | WITHOUT ANY WARRANTY; without even the implied warranty of |
16 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
17 | See the GNU Affero General Public License for more details. |
18 | |
19 | You should have received a copy of the GNU Affero General Public |
20 | License along with this program; if not, contact CiviCRM LLC |
21 | at info[AT]civicrm[DOT]org. If you have questions about the |
22 | GNU Affero General Public License or the licensing of CiviCRM, |
23 | see the CiviCRM license FAQ at http://civicrm.org/licensing |
24 +--------------------------------------------------------------------+
25 */
26
27 require_once 'CiviTest/CiviSeleniumTestCase.php';
28
29 /**
30 * Class WebTest_Pledge_ContactContextPledgePaymentAddTest
31 */
32 class WebTest_Pledge_ContactContextPledgePaymentAddTest extends CiviSeleniumTestCase {
33
34 protected function setUp() {
35 parent::setUp();
36 }
37
38 public function testAddPledgePaymentWithAdjustPledgePaymentSchedule() {
39 $this->webtestLogin();
40 $this->openCiviPage('admin/setting/localization', 'reset=1');
41 $this->select("currencyLimit-f","value=FJD");
42 $this->click("add");
43 $this->click("_qf_Localization_next-bottom");
44 $this->waitForPageToLoad($this->getTimeoutMsec());
45
46 // Disable pop-ups for this test. Running test w/ pop-ups causes a spurious failure. dgg
47 $this->enableDisablePopups(FALSE);
48
49 // create unique name
50 $name = substr(sha1(rand()), 0, 7);
51 $firstName = 'Adam' . $name;
52 $lastName = 'Jones' . $name;
53
54 // create new contact
55 $this->webtestAddContact($firstName, $lastName, $firstName . "@example.com");
56
57 // wait for action element
58 $this->waitForElementPresent('crm-contact-actions-link');
59
60 // now add pledge from contact summary
61 $this->click("//a[@id='crm-contact-actions-link']/span/div");
62
63 // wait for add pledge link
64 $this->waitForElementPresent('link=Add Pledge');
65
66 $this->click('link=Add Pledge');
67
68 // wait for pledge form to load completely
69 $this->waitForElementPresent('_qf_Pledge_upload-bottom');
70
71 // check contact name on pledge form
72 $this->assertElementContainsText('css=tr.crm-pledge-form-block-displayName', "$firstName $lastName");
73
74 $this->select("currency","value=FJD");
75 $this->type("amount", "30");
76 $this->type("installments", "3");
77 $this->select("frequency_unit", "value=week");
78 $this->type("frequency_day", "2");
79
80 $this->webtestFillDate('acknowledge_date', 'now');
81 $this->select( "financial_type_id", "label=Donation");
82
83 $this->select("contribution_page_id", "value=3");
84
85
86 //PaymentReminders
87 $this->click("PaymentReminders");
88 $this->waitForElementPresent("additional_reminder_day");
89 $this->type("initial_reminder_day", "4");
90 $this->type("max_reminders", "2");
91 $this->type("additional_reminder_day", "4");
92
93 $this->click("_qf_Pledge_upload-bottom");
94 $this->waitForElementPresent('link=Add Pledge');
95
96 $this->waitForText('crm-notification-container', "Pledge has been recorded and the payment schedule has been created.");
97
98 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
99 //click through to the Pledge view screen
100 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
101 $this->waitForElementPresent("_qf_PledgeView_next-bottom");
102 $pledgeDate = date('F jS, Y', strtotime('now'));
103
104 $this->webtestVerifyTabularData(array(
105 'Pledge By' => $firstName . ' ' . $lastName,
106 'Total Pledge Amount' => '$ 30.00',
107 'To be paid in' => '3 installments of $ 10.00 every 1 week(s)',
108 'Payments are due on the' => '2 day of the period',
109 'Pledge Made' => $pledgeDate,
110 'Financial Type' => 'Donation',
111 'Pledge Status' => 'Pending',
112 'Initial Reminder Day' => '4 days prior to schedule date',
113 'Maximum Reminders Send' => 2,
114 'Send additional reminders' => '4 days after the last one sent',
115 )
116 );
117
118 $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']", FALSE);
119 $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
120 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
121 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
122 $this->waitForElementPresent("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
123 $this->click("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
124 $this->waitForElementPresent("adjust-option-type");
125 $this->type("total_amount", "5");
126 $this->click("_qf_Contribution_upload");
127
128 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
129 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[1]/span/a");
130
131 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='Record Payment']");
132 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='Record Payment']");
133 $this->waitForElementPresent("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
134 $this->click("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
135 $this->waitForElementPresent("adjust-option-type");
136 $this->type("total_amount", "10");
137
138 $this->click("_qf_Contribution_upload");
139
140 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
141 //click through to the Pledge view screen
142 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
143 $this->waitForElementPresent("_qf_PledgeView_next-bottom");
144 $pledgeDate = date('F jS, Y', strtotime('now'));
145
146 $this->webtestVerifyTabularData(array(
147 'Pledge By' => $firstName . ' ' . $lastName,
148 'Total Pledge Amount' => '$ 30.00',
149 'To be paid in' => '3 installments of $ 10.00 every 1 week(s)',
150 'Payments are due on the' => '2 day of the period',
151 'Pledge Made' => $pledgeDate,
152 'Financial Type' => 'Donation',
153 'Pledge Status' => 'In Progress',
154 'Initial Reminder Day' => '4 days prior to schedule date',
155 'Maximum Reminders Send' => 2,
156 'Send additional reminders' => '4 days after the last one sent',
157 )
158 );
159
160 $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']", FALSE);
161 $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
162 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a[text()='Record Payment']");
163 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a[text()='Record Payment']");
164 $this->waitForElementPresent("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
165
166 $this->waitForElementPresent("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
167 $this->click("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
168 $this->waitForElementPresent("adjust-option-type");
169 $this->type("total_amount", "10");
170
171 $this->waitForElementPresent("_qf_Contribution_upload");
172 $this->click("_qf_Contribution_upload");
173
174 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
175 $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
176
177 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[5]/td[8]/a[text()='Record Payment']");
178 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[5]/td[8]/a[text()='Record Payment']");
179
180 $this->waitForElementPresent("_qf_Contribution_upload");
181 $this->click("_qf_Contribution_upload");
182
183 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
184 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
185
186 $this->waitForElementPresent("_qf_PledgeView_next-bottom");
187 $this->webtestVerifyTabularData(array(
188 'Pledge By' => $firstName . ' ' . $lastName,
189 'Total Pledge Amount' => '$ 30.00',
190 'To be paid in' => '3 installments of $ 10.00 every 1 week(s)',
191 'Payments are due on the' => '2 day of the period',
192 'Pledge Made' => $pledgeDate,
193 'Financial Type' => 'Donation',
194 'Pledge Status' => 'Completed',
195 'Initial Reminder Day' => '4 days prior to schedule date',
196 'Maximum Reminders Send' => 2,
197 'Send additional reminders' => '4 days after the last one sent',
198 )
199 );
200 $this->openCiviPage('admin/setting/localization', 'reset=1');
201 $this->select("currencyLimit-t","value=FJD");
202 $this->click("remove");
203 $this->click("_qf_Localization_next-bottom");
204 $this->waitForPageToLoad($this->getTimeoutMsec());
205 // Re-enable pop-ups to leave things in the same state
206 $this->enableDisablePopups(TRUE);
207 }
208
209 public function testAddPledgePaymentWithAdjustTotalPledgeAmount() {
210 $this->webtestLogin();
211 // Disable pop-ups for this test. Running test w/ pop-ups causes a spurious failure. dgg
212 $this->enableDisablePopups(FALSE);
213
214 // create unique name
215 $name = substr(sha1(rand()), 0, 7);
216 $firstName = 'Adam' . $name;
217 $lastName = 'Jones' . $name;
218
219 // create new contact
220 $this->webtestAddContact($firstName, $lastName, $firstName . "@example.com");
221
222 // wait for action element
223 $this->waitForElementPresent('crm-contact-actions-link');
224
225 // now add pledge from contact summary
226 $this->click("//a[@id='crm-contact-actions-link']/span/div");
227
228 // wait for add plegde link
229 $this->waitForElementPresent('link=Add Pledge');
230
231 $this->click('link=Add Pledge');
232
233 // wait for pledge form to load completely
234 $this->waitForElementPresent('_qf_Pledge_upload-bottom');
235
236 // check contact name on pledge form
237 $this->assertElementContainsText('css=tr.crm-pledge-form-block-displayName', "$firstName $lastName");
238
239 $this->type("amount", "30");
240 $this->type("installments", "3");
241 $this->select("frequency_unit", "value=week");
242 $this->type("frequency_day", "2");
243
244 $this->webtestFillDate('acknowledge_date', 'now');
245
246 $this->select("contribution_page_id", "value=3");
247
248
249
250 //PaymentReminders
251 $this->click("PaymentReminders");
252 $this->waitForElementPresent("additional_reminder_day");
253 $this->type("initial_reminder_day", "4");
254 $this->type("max_reminders", "2");
255 $this->type("additional_reminder_day", "4");
256
257 $this->click("_qf_Pledge_upload-bottom");
258
259 $this->waitForText('crm-notification-container', "Pledge has been recorded and the payment schedule has been created.");
260
261 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
262 //click through to the Pledge view screen
263 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
264 $this->waitForElementPresent("_qf_PledgeView_next-bottom");
265 $pledgeDate = date('F jS, Y', strtotime('now'));
266
267 $this->webtestVerifyTabularData(array(
268 'Pledge By' => $firstName . ' ' . $lastName,
269 'Total Pledge Amount' => '$ 30.00',
270 'To be paid in' => '3 installments of $ 10.00 every 1 week(s)',
271 'Payments are due on the' => '2 day of the period',
272 'Pledge Made' => $pledgeDate,
273 'Financial Type' => 'Donation',
274 'Pledge Status' => 'Pending',
275 'Initial Reminder Day' => '4 days prior to schedule date',
276 'Maximum Reminders Send' => 2,
277 'Send additional reminders' => '4 days after the last one sent',
278 )
279 );
280
281 $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']", FALSE);
282 $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
283 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
284 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
285 $this->waitForElementPresent("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
286 $this->click("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
287 $this->waitForElementPresent("adjust-option-type");
288 $this->waitForElementPresent("CIVICRM_QFID_2_option_type");
289 $this->click("CIVICRM_QFID_2_option_type");
290 $this->type("total_amount", "15");
291 $this->click("_qf_Contribution_upload");
292
293 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
294 $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
295
296 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='Record Payment']");
297 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='Record Payment']");
298 $this->waitForElementPresent("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
299 $this->click("xpath=//form[@id='Contribution']//table//tbody/tr[3]/td[2]/a[text()='adjust payment amount']");
300 $this->waitForElementPresent("adjust-option-type");
301 $this->waitForElementPresent("CIVICRM_QFID_2_option_type");
302 $this->click("CIVICRM_QFID_2_option_type");
303 $this->type("total_amount", "15");
304
305 $this->click("_qf_Contribution_upload");
306
307 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
308 //click through to the Pledge view screen
309 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
310 $this->waitForElementPresent("_qf_PledgeView_next-bottom");
311 $pledgeDate = date('F jS, Y', strtotime('now'));
312
313 $this->webtestVerifyTabularData(array(
314 'Pledge By' => $firstName . ' ' . $lastName,
315 'Total Pledge Amount' => '$ 40.00',
316 'To be paid in' => '3 installments of $ 10.00 every 1 week(s)',
317 'Payments are due on the' => '2 day of the period',
318 'Pledge Made' => $pledgeDate,
319 'Financial Type' => 'Donation',
320 'Pledge Status' => 'In Progress',
321 'Initial Reminder Day' => '4 days prior to schedule date',
322 'Maximum Reminders Send' => 2,
323 'Send additional reminders' => '4 days after the last one sent',
324 )
325 );
326
327 $this->clickLink("_qf_PledgeView_next-bottom", "xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']", FALSE);
328 $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
329 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a[text()='Record Payment']");
330 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a[text()='Record Payment']");
331
332 $this->waitForElementPresent("_qf_Contribution_upload");
333 $this->click("_qf_Contribution_upload");
334
335 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
336 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
337
338 $this->waitForElementPresent("_qf_PledgeView_next-bottom");
339 $this->webtestVerifyTabularData(array(
340 'Pledge By' => $firstName . ' ' . $lastName,
341 'Total Pledge Amount' => '$ 40.00',
342 'To be paid in' => '3 installments of $ 10.00 every 1 week(s)',
343 'Payments are due on the' => '2 day of the period',
344 'Pledge Made' => $pledgeDate,
345 'Financial Type' => 'Donation',
346 'Pledge Status' => 'Completed',
347 'Initial Reminder Day' => '4 days prior to schedule date',
348 'Maximum Reminders Send' => 2,
349 'Send additional reminders' => '4 days after the last one sent',
350 )
351 );
352 // Re-enable pop-ups to leave things in the same state
353 $this->enableDisablePopups(TRUE);
354 }
355
356 public function testAddPledgePayment() {
357 $this->webtestLogin();
358 // Disable pop-ups for this test. Running test w/ pop-ups causes a spurious failure. dgg
359 $this->enableDisablePopups(FALSE);
360
361 // create unique name
362 $name = substr(sha1(rand()), 0, 7);
363 $firstName = 'Adam' . $name;
364 $lastName = 'Jones' . $name;
365
366 // create new contact
367 $this->webtestAddContact($firstName, $lastName, $firstName . "@example.com");
368
369 // wait for action element
370 $this->waitForElementPresent('crm-contact-actions-link');
371
372 // now add pledge from contact summary
373 $this->click("//a[@id='crm-contact-actions-link']/span/div");
374
375 // wait for add plegde link
376 $this->waitForElementPresent('link=Add Pledge');
377
378 $this->click('link=Add Pledge');
379
380 // wait for pledge form to load completely
381 $this->waitForElementPresent('_qf_Pledge_upload-bottom');
382
383 // check contact name on pledge form
384 $this->assertElementContainsText('css=tr.crm-pledge-form-block-displayName', "$firstName $lastName");
385
386 $this->type("amount", "30");
387 $this->type("installments", "3");
388 $this->select("frequency_unit", "value=week");
389 $this->type("frequency_day", "2");
390
391 $this->webtestFillDate('acknowledge_date', 'now');
392
393 $this->select("contribution_page_id", "value=3");
394
395
396 //PaymentReminders
397 $this->click("PaymentReminders");
398 $this->waitForElementPresent("additional_reminder_day");
399 $this->type("initial_reminder_day", "4");
400 $this->type("max_reminders", "2");
401 $this->type("additional_reminder_day", "4");
402
403 $this->click("_qf_Pledge_upload-bottom");
404
405 $this->waitForText('crm-notification-container', "Pledge has been recorded and the payment schedule has been created.");
406
407 //Add payments
408 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
409 $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
410 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
411 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[2]/td[8]/a[text()='Record Payment']");
412 $this->waitForElementPresent("_qf_Contribution_upload");
413 $this->click("_qf_Contribution_upload");
414
415 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
416 $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
417 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='Record Payment']");
418 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[3]/td[8]/a[text()='Record Payment']");
419 $this->waitForElementPresent("_qf_Contribution_upload");
420 $this->click("_qf_Contribution_upload");
421
422 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
423 $this->click("xpath=//div[@class='view-content']//table[@class='selector row-highlight']//tbody/tr[1]/td[1]/span/a");
424 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a[text()='Record Payment']");
425 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[2]/td[2]/table/tbody/tr[4]/td[8]/a[text()='Record Payment']");
426 $this->waitForElementPresent("_qf_Contribution_upload");
427 $this->click("_qf_Contribution_upload");
428
429 $this->waitForElementPresent("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
430 //click through to the Pledge view screen
431 $this->click("xpath=//div[@class='view-content']//table//tbody/tr[1]/td[10]/span/a[text()='View']");
432 $this->waitForElementPresent("_qf_PledgeView_next-bottom");
433 $pledgeDate = date('F jS, Y', strtotime('now'));
434
435 $this->webtestVerifyTabularData(array(
436 'Pledge By' => $firstName . ' ' . $lastName,
437 'Total Pledge Amount' => '$ 30.00',
438 'To be paid in' => '3 installments of $ 10.00 every 1 week(s)',
439 'Payments are due on the' => '2 day of the period',
440 'Pledge Made' => $pledgeDate,
441 'Financial Type' => 'Donation',
442 'Pledge Status' => 'Completed',
443 'Initial Reminder Day' => '4 days prior to schedule date',
444 'Maximum Reminders Send' => 2,
445 'Send additional reminders' => '4 days after the last one sent',
446 )
447 );
448 // Re-enable pop-ups to leave things in the same state
449 $this->enableDisablePopups(TRUE);
450 }
451 }
452