projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
copyright and version fixes
[civicrm-core.git]
/
tests
/
phpunit
/
api
/
v3
/
CustomValueContactTypeTest.php
diff --git
a/tests/phpunit/api/v3/CustomValueContactTypeTest.php
b/tests/phpunit/api/v3/CustomValueContactTypeTest.php
index 38134be5ed1b890acc70c23c86ba0de5a56b2dad..d7a7af644f036e36d30414653a7b80f8ef044a7e 100644
(file)
--- a/
tests/phpunit/api/v3/CustomValueContactTypeTest.php
+++ b/
tests/phpunit/api/v3/CustomValueContactTypeTest.php
@@
-1,9
+1,9
@@
<?php
/*
+--------------------------------------------------------------------+
<?php
/*
+--------------------------------------------------------------------+
- | CiviCRM version 4.
3
|
+ | CiviCRM version 4.
5
|
+--------------------------------------------------------------------+
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-201
3
|
+ | Copyright CiviCRM LLC (c) 2004-201
4
|
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
@@
-39,7
+39,7
@@
class api_v3_CustomValueContactTypeTest extends CiviUnitTestCase {
protected $_apiversion =3;
protected $CustomGroupIndividual;
protected $individualStudent;
protected $_apiversion =3;
protected $CustomGroupIndividual;
protected $individualStudent;
- public $_eNoticeCompliant = TRUE;
+
function get_info() {
return array(
function get_info() {
return array(
@@
-61,7
+61,7
@@
class api_v3_CustomValueContactTypeTest extends CiviUnitTestCase {
$this->CustomGroupIndividual = $this->customGroupCreate($groupIndividual);
$this->CustomGroupIndividual = $this->customGroupCreate($groupIndividual);
- $this->IndividualField = $this->customFieldCreate(
$this->CustomGroupIndividual['id'], "Custom Field" . substr(sha1(rand()), 0, 7
));
+ $this->IndividualField = $this->customFieldCreate(
array('custom_group_id' => $this->CustomGroupIndividual['id']
));
// Create Group For Individual-Student Contact Sub Type
$groupIndiStudent = array(
// Create Group For Individual-Student Contact Sub Type
$groupIndiStudent = array(
@@
-73,7
+73,7
@@
class api_v3_CustomValueContactTypeTest extends CiviUnitTestCase {
$this->CustomGroupIndiStudent = $this->customGroupCreate($groupIndiStudent);
$this->CustomGroupIndiStudent = $this->customGroupCreate($groupIndiStudent);
- $this->IndiStudentField = $this->customFieldCreate(
$this->CustomGroupIndiStudent['id'], "Custom Field" . substr(sha1(rand()), 0, 7
));
+ $this->IndiStudentField = $this->customFieldCreate(
array('custom_group_id' => $this->CustomGroupIndiStudent['id']
));
$params = array(
'first_name' => 'Mathev',
$params = array(
'first_name' => 'Mathev',