require_once 'CiviTest/CiviUnitTestCase.php';
+/**
+ * Class api_v3_CustomSearchTest
+ */
class api_v3_CustomSearchTest extends CiviUnitTestCase {
protected $_apiversion;
- function setUp() {
+ public function setUp() {
$this->_apiversion = 3;
parent::setUp();
+ $this->useTransaction(TRUE);
}
- function tearDown() {}
-
public function testCustomSearch() {
$result = $this->callAPISuccess('CustomSearch', 'create', array(
'label' => 'Invalid, overwritten',