+--------------------------------------------------------------------+
| CiviCRM version 5 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2018 |
+ | Copyright CiviCRM LLC (c) 2004-2019 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
*/
class api_v3_OrderTest extends CiviUnitTestCase {
- /**
- * Assume empty database with just civicrm_data.
- */
protected $_individualId;
protected $_financialTypeId = 1;
protected $_apiversion;
'contact_id' => $this->_individualId,
'receive_date' => '2010-01-20',
'total_amount' => 200,
- 'financial_type_id' => $this->_financialTypeId,
+ 'financial_type_id' => 'Event Fee',
'contribution_status_id' => 1,
);
$priceFields = $this->createPriceSet();
'financial_type_id' => 1,
'entity_table' => 'civicrm_contribution',
],
- ]
+ ],
],
],
];
'entity_table' => 'civicrm_contribution',
'tax_amount' => 15,
],
- ]
+ ],
],
],
];
'entity_table' => 'civicrm_contribution',
'tax_amount' => 15,
],
- ]
+ ],
],
],
];