protected function tearDown()
 {
     parent::tearDown();
     if (isset($this->nocms_contact_id)) {
         $deleteParams = array("id" => $this->nocms_contact_id, "skip_undelete" => 1);
         $res = $this->webtest_civicrm_api("Contact", "delete", $deleteParams);
         unset($this->nocms_contact_id);
     }
 }
Beispiel #2
0
 protected function tearDown()
 {
     if (!empty($this->old_api_keys)) {
         foreach ($this->old_api_keys as $cid => $apiKey) {
             $this->webtest_civicrm_api('Contact', 'create', array('id' => $cid, 'api_key' => $apiKey));
         }
     }
     parent::tearDown();
     if (isset($this->nocms_contact_id)) {
         $deleteParams = array("id" => $this->nocms_contact_id, "skip_undelete" => 1);
         $res = $this->webtest_civicrm_api("Contact", "delete", $deleteParams);
         unset($this->nocms_contact_id);
     }
 }
 protected function setUp()
 {
     parent::setUp();
 }
 function setUp()
 {
     parent::setUp();
     global $mandrillSettings;
     $mandrillSettings = array('username' => '*****@*****.**', 'password' => '42bAi-rn5IyYRkRupiw-CQ');
 }