+--------------------------------------------------------------------+
| CiviCRM version 4.6 |
+--------------------------------------------------------------------+
- | Copyright CiviCRM LLC (c) 2004-2014 |
+ | Copyright CiviCRM LLC (c) 2004-2015 |
+--------------------------------------------------------------------+
| This file is a part of CiviCRM. |
| |
| GNU Affero General Public License or the licensing of CiviCRM, |
| see the CiviCRM license FAQ at http://civicrm.org/licensing |
+--------------------------------------------------------------------+
-*/
-
-
+ */
require_once 'CiviTest/CiviUnitTestCase.php';
protected $_params = array();
-
protected function setUp() {
parent::setUp();
$this->_apiversion = 3;
)
);
$this->_contactId = $this->individualCreate();
- $op = new PHPUnit_Extensions_Database_Operation_Insert;
+ $op = new PHPUnit_Extensions_Database_Operation_Insert();
$op->execute(
$this->_dbconn,
$this->createFlatXMLDataSet(dirname(__FILE__) . '/dataset/uf_group_test.xml')
'uf_id' => '2',
'uf_name' => 'blahdyblah@gmail.com',
'domain_id' => 1,
- );
+ );
}
public function tearDown() {
}
/**
- * Fetch contact id by uf id
+ * Fetch contact id by uf id.
*/
public function testGetUFMatchID() {
$params = array(
}
/**
- * Fetch uf id by contact id
+ * Fetch uf id by contact id.
*/
public function testGetUFID() {
$params = array(
}
/**
- * Test civicrm_activity_create() using example code
+ * Test civicrm_activity_create() using example code
*/
public function testUFMatchGetExample() {
require_once 'api/v3/examples/UFMatch/Get.php';
public function testDelete() {
$result = $this->callAPISuccess('uf_match', 'create', $this->_params);
$this->assertEquals(1, $this->callAPISuccess('uf_match', 'getcount', array(
- 'id' => $result['id'],
- )));
+ 'id' => $result['id'],
+ )));
$this->callAPISuccess('uf_match', 'delete', array(
- 'id' => $result['id'],
+ 'id' => $result['id'],
));
$this->assertEquals(0, $this->callAPISuccess('uf_match', 'getcount', array(
- 'id' => $result['id'],
- )));
+ 'id' => $result['id'],
+ )));
}
+
}