* +--------------------------------------------------------------------+
* | CiviCRM version 4.7 |
* +--------------------------------------------------------------------+
- * | Copyright CiviCRM LLC (c) 2004-2017 |
+ * | Copyright CiviCRM LLC (c) 2004-2018 |
* +--------------------------------------------------------------------+
* | This file is a part of CiviCRM. |
* | |
$this->getAndCheck($this->params, $result['id'], $this->entity);
}
+ /**
+ * Test disable a PCP succeeds.
+ */
+ public function testDisablePcp() {
+ $result = civicrm_api3('Pcp', 'create', $this->params);
+ civicrm_api3('Pcp', 'create', array('id' => $result['id'], 'is_active' => 0));
+ $this->getAndCheck($this->params + array('is_active' => 0), $result['id'], $this->entity);
+ }
+
/**
* Test get function succeeds.
*