*/
-
-
require_once 'CiviTest/CiviUnitTestCase.php';
/**
* Test class for UFGroup API - civicrm_uf_*
* @todo Split UFGroup and UFJoin tests
*
- * @package CiviCRM
+ * @package CiviCRM
*/
class api_v3_UFMatchTest extends CiviUnitTestCase {
// ids from the uf_group_test.xml fixture
protected $_params = array();
-
protected function setUp() {
parent::setUp();
$this->_apiversion = 3;
'uf_id' => '2',
'uf_name' => 'blahdyblah@gmail.com',
'domain_id' => 1,
- );
+ );
}
public function tearDown() {
public function testDelete() {
$result = $this->callAPISuccess('uf_match', 'create', $this->_params);
- $this->assertEquals(1, $this->callAPISuccess('uf_match', 'getcount', array( 'id' => $result['id'],
- )));
- $this->callAPISuccess('uf_match', 'delete', array( 'id' => $result['id'],
+ $this->assertEquals(1, $this->callAPISuccess('uf_match', 'getcount', array(
+ 'id' => $result['id'],
+ )));
+ $this->callAPISuccess('uf_match', 'delete', array(
+ 'id' => $result['id'],
));
- $this->assertEquals(0, $this->callAPISuccess('uf_match', 'getcount', array('id' => $result['id'],
- )));
+ $this->assertEquals(0, $this->callAPISuccess('uf_match', 'getcount', array(
+ 'id' => $result['id'],
+ )));
}
}