*/
-
-
require_once 'CiviTest/CiviUnitTestCase.php';
/**
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'],
- )));
+ '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'],
+ )));
}
}