class api_v3_ContactTypeTest extends CiviUnitTestCase {
protected $_apiversion;
- function setUp() {
+ public function setUp() {
parent::setUp();
$this->useTransaction(TRUE);
$this->_apiversion = 3;
* Test add methods with valid data
* success expected
*/
- function testContactCreate() {
+ public function testContactCreate() {
// check for Type:Individual Subtype:sub_individual
$contactParams = array(
/**
* Test add with invalid data
*/
- function testContactAddInvalidData() {
+ public function testContactAddInvalidData() {
// check for Type:Individual Subtype:sub_household
$contactParams = array(
* Test update with no subtype to valid subtype
* success expected
*/
- function testContactUpdateNoSubtypeValid() {
+ public function testContactUpdateNoSubtypeValid() {
// check for Type:Individual
$contactParams = array(
/**
* Test update with no subtype to invalid subtype
*/
- function testContactUpdateNoSubtypeInvalid() {
+ public function testContactUpdateNoSubtypeInvalid() {
// check for Type:Individual
$contactParams = array(
* Test update with no subtype to valid subtype
* success expected
*/
- function testContactUpdateSubtypeValid() {
+ public function testContactUpdateSubtypeValid() {
$params = array(
'label' => 'sub2_individual',
/**
* Test update with no subtype to invalid subtype
*/
- function testContactUpdateSubtypeInvalid() {
+ public function testContactUpdateSubtypeInvalid() {
// check for Type:Individual subtype:sub_individual
$contactParams = array(