Skip to content

Commit

Permalink
Merge pull request #10350 from seanmadsen/CRM-20570
Browse files Browse the repository at this point in the history
CRM-20570 Add unit test for disabling of PCP
  • Loading branch information
eileenmcnaughton authored May 14, 2017
2 parents 20a05ba + 8168545 commit 63e6da8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tests/phpunit/api/v3/PcpTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,15 @@ public function testCreatePcp() {
$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.
*
Expand Down

0 comments on commit 63e6da8

Please sign in to comment.