* @inheritDoc
*/
public function modifySpec(RequestSpec $spec) {
- $spec->getFieldByName('contact_id')->setRequired(TRUE);
$spec->getFieldByName('email')->setRequired(TRUE);
$spec->getFieldByName('on_hold')->setRequired(FALSE);
$spec->getFieldByName('is_bulkmail')->setRequired(FALSE);
/**
* @param int $version
+ *
* @dataProvider versionThreeAndFour
+ * @throws \CRM_Core_Exception
*/
public function testCreateAddress($version) {
$this->_apiversion = $version;
- $result = $this->callAPIAndDocument('address', 'create', $this->_params, __FUNCTION__, __FILE__);
+ $result = $this->callAPIAndDocument('Address', 'create', $this->_params, __FUNCTION__, __FILE__);
$this->assertEquals(1, $result['count']);
$this->assertNotNull($result['values'][$result['id']]['id']);
$this->getAndCheck($this->_params, $result['id'], 'address');