Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[NFC] declare thrown exceptions #15809

Merged
merged 1 commit into from
Nov 11, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions tests/phpunit/CiviTest/CiviUnitTestCase.php
Original file line number Diff line number Diff line change
Expand Up @@ -662,9 +662,13 @@ public function membershipRenewalDate($durationUnit, $membershipEndDate) {
}

/**
* Create a relationship type.
*
* @param array $params
*
* @return mixed
* @return int
*
* @throws \CRM_Core_Exception
*/
public function relationshipTypeCreate($params = []) {
$params = array_merge([
Expand Down Expand Up @@ -699,6 +703,7 @@ public function relationshipTypeDelete($relationshipTypeID) {
* @param array $params
*
* @return mixed
* @throws \CRM_Core_Exception
*/
public function paymentProcessorTypeCreate($params = NULL) {
if (is_null($params)) {
Expand Down Expand Up @@ -980,6 +985,7 @@ public function contributionCreate($params) {
* @param int $contributionId
*
* @return array|int
* @throws \CRM_Core_Exception
*/
public function contributionDelete($contributionId) {
$params = [
Expand Down Expand Up @@ -1866,7 +1872,7 @@ public function restoreDefaultPriceSetConfig() {
* @param int $delete
* @param string $errorText
*
* @throws Exception
* @throws CRM_Core_Exception
*/
public function getAndCheck($params, $id, $entity, $delete = 1, $errorText = '') {

Expand Down Expand Up @@ -2971,6 +2977,10 @@ protected function createPaymentInstrument($params = [], $financialAccountName =

/**
* Enable Tax and Invoicing
*
* @param array $params
*
* @return \Civi\Core\SettingsBag
*/
protected function enableTaxAndInvoicing($params = []) {
// Enable component contribute setting
Expand Down
Loading