<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.5 |
+ | CiviCRM version 4.6 |
+--------------------------------------------------------------------+
| Copyright CiviCRM LLC (c) 2004-2014 |
+--------------------------------------------------------------------+
);
}
- function tearDown() {
+ public function tearDown() {
$this->quickCleanup(
array(
'civicrm_group',
}
/**
- * create / updating field
+ * Create / updating field
*/
public function testCreateUFField() {
$params = $this->_params; // copy
$this->callAPIFailure('uf_field', 'create', $params);
}
- function testCreateUFFieldWithWrongParams() {
+ public function testCreateUFFieldWithWrongParams() {
$this->callAPIFailure('uf_field', 'create', array('field_name' => 'test field'));
$this->callAPIFailure('uf_field', 'create', array('label' => 'name-less field'));
}
+
/**
* Create a field with 'weight=1' and then a second with 'weight=1'. The second field
* winds up with weight=1, and the first field gets bumped to 'weight=2'.
}
/**
- * deleting field
+ * Deleting field
*/
public function testDeleteUFField() {
$ufField = $this->callAPISuccess('uf_field', 'create', $this->_params);
}
/**
- * create / updating field
+ * Create / updating field
*/
public function testReplaceUFFields() {
$baseFields = array();