projects
/
civicrm-core.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge pull request #4940 from mlutfy/crm15824
[civicrm-core.git]
/
tests
/
phpunit
/
CiviTest
/
Event.php
diff --git
a/tests/phpunit/CiviTest/Event.php
b/tests/phpunit/CiviTest/Event.php
index 26631d8713ed89fb8e0734e26fb78378cb00517d..bd393f36c5d0602aba432e4e8e42d38673aaca74 100644
(file)
--- a/
tests/phpunit/CiviTest/Event.php
+++ b/
tests/phpunit/CiviTest/Event.php
@@
-1,14
+1,19
@@
<?php
<?php
+
+/**
+ * Class Event
+ */
class Event extends PHPUnit_Framework_Testcase {
/**
* Helper function to create
* an Event
*
class Event extends PHPUnit_Framework_Testcase {
/**
* Helper function to create
* an Event
*
- * @param $contactId
+ * @param
int
$contactId
*
*
- * @return mixed $event id of created Event
+ * @return int
+ * id of created Event
*/
*/
- static function create($contactId) {
+
public
static function create($contactId) {
require_once "CRM/Event/BAO/Event.php";
$params = array(
'title' => 'Test Event',
require_once "CRM/Event/BAO/Event.php";
$params = array(
'title' => 'Test Event',
@@
-24,7
+29,6
@@
class Event extends PHPUnit_Framework_Testcase {
'contact_id' => $contactId,
);
'contact_id' => $contactId,
);
-
$event = CRM_Event_BAO_Event::create($params);
return $event->id;
}
$event = CRM_Event_BAO_Event::create($params);
return $event->id;
}
@@
-32,14
+36,11
@@
class Event extends PHPUnit_Framework_Testcase {
/**
* Helper function to delete an Event
*
/**
* Helper function to delete an Event
*
- * @param $eventId
- * @
internal param int $eventID id of the event to delete
- *
@return boolean
true if event deleted, false otherwise
+ * @param
int
$eventId
+ * @
return boolean
+ *
true if event deleted, false otherwise
*/
*/
- static function delete($eventId) {
+
public
static function delete($eventId) {
return CRM_Event_BAO_Event::del($eventId);
}
}
return CRM_Event_BAO_Event::del($eventId);
}
}
-
-
-