projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
INFRA-132 - tests/ - PHPStorm cleanup
[civicrm-core.git]
/
tests
/
phpunit
/
CiviTest
/
PCP.php
diff --git
a/tests/phpunit/CiviTest/PCP.php
b/tests/phpunit/CiviTest/PCP.php
index 1332685251abe30886b8bc0e6e2013694075feee..93558d914f5ee2bd5b8640793a72904faea2aa3e 100644
(file)
--- a/
tests/phpunit/CiviTest/PCP.php
+++ b/
tests/phpunit/CiviTest/PCP.php
@@
-1,14
+1,19
@@
<?php
<?php
+
+/**
+ * Class PCPBlock
+ */
class PCPBlock extends PHPUnit_Framework_Testcase {
/**
* Helper function to create a PCP Block for Contribution Page
*
class PCPBlock extends PHPUnit_Framework_Testcase {
/**
* Helper function to create a PCP Block for Contribution Page
*
- * @param int $contributionPageId - id of the Contribution Page
+ * @param int $contributionPageId
+ * Id of the Contribution Page.
* to be deleted
* to be deleted
- * @return array
of created pcp block
- *
+ * @return array
+ *
of created pcp block
*/
*/
- function create($contributionPageId) {
+
public
function create($contributionPageId) {
$profileParams = array(
'group_type' => 'Individual,Contact',
'title' => 'Test Supprorter Profile',
$profileParams = array(
'group_type' => 'Individual,Contact',
'title' => 'Test Supprorter Profile',
@@
-86,18
+91,17
@@
class PCPBlock extends PHPUnit_Framework_Testcase {
/**
* Helper function to delete a PCP related stuff viz. Profile, PCP Block Entry
*
/**
* Helper function to delete a PCP related stuff viz. Profile, PCP Block Entry
*
- * @param
array key value pair
+ * @param array key value pair
* pcpBlockId - id of the PCP Block Id, profileID - id of Supporter Profile
* to be deleted
* pcpBlockId - id of the PCP Block Id, profileID - id of Supporter Profile
* to be deleted
- * @return boolean
true if success, false otherwise
- *
+ * @return boolean
+ *
true if success, false otherwise
*/
*/
- function delete($params) {
+
public
function delete($params) {
$delete_params = array('id' => $params['profileId']);
$resulProfile = civicrm_api('uf_group', 'delete', $delete_params);
$delete_params = array('id' => $params['profileId']);
$resulProfile = civicrm_api('uf_group', 'delete', $delete_params);
-
require_once 'CRM/Contribute/DAO/PCPBlock.php';
$dao = new CRM_Contribute_DAO_PCPBlock();
$dao->id = $params['blockId'];
require_once 'CRM/Contribute/DAO/PCPBlock.php';
$dao = new CRM_Contribute_DAO_PCPBlock();
$dao->id = $params['blockId'];