Skip to content

Commit

Permalink
CRM-20570 Add unit test for disabling of PCP
Browse files Browse the repository at this point in the history
  • Loading branch information
seancolsen committed May 13, 2017
1 parent 090269a commit 8168545
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 8168545

Please sign in to comment.