/**
* Test the submit function on the contribution page.
+ *
+ * @param string $thousandSeparator
+ *
+ * @dataProvider getThousandSeparators
*/
- public function testSubmit() {
+ public function testSubmit($thousandSeparator) {
+ $this->setCurrencySeparators($thousandSeparator);
$form = new CRM_Contribute_Form_Contribution();
$form->testSubmit(array(
- 'total_amount' => 50,
+ 'total_amount' => $this->formatMoneyInput(1234),
'financial_type_id' => 1,
- 'receive_date' => '04/21/2015',
- 'receive_date_time' => '11:27PM',
'contact_id' => $this->_individualId,
'payment_instrument_id' => array_search('Check', $this->paymentInstruments),
'contribution_status_id' => 1,