From 2ed07c20049cf8310430fbc0e2a5a8901858b4dd Mon Sep 17 00:00:00 2001 From: eileen Date: Thu, 13 Dec 2018 15:51:58 +1300 Subject: [PATCH] Remove unused function from test class --- .../phpunit/CRMTraits/ACL/PermissionTrait.php | 14 +++++++++++++ tests/phpunit/CiviTest/CiviUnitTestCase.php | 21 ------------------- 2 files changed, 14 insertions(+), 21 deletions(-) diff --git a/tests/phpunit/CRMTraits/ACL/PermissionTrait.php b/tests/phpunit/CRMTraits/ACL/PermissionTrait.php index 356a19a5b7..174f2713a7 100644 --- a/tests/phpunit/CRMTraits/ACL/PermissionTrait.php +++ b/tests/phpunit/CRMTraits/ACL/PermissionTrait.php @@ -50,6 +50,20 @@ trait CRMTraits_ACL_PermissionTrait { $where = " (1) "; } + /** + * No results returned. + * + * @implements CRM_Utils_Hook::aclWhereClause + * + * @param string $type + * @param array $tables + * @param array $whereTables + * @param int $contactID + * @param string $where + */ + public function aclWhereHookNoResults($type, &$tables, &$whereTables, &$contactID, &$where) { + } + /** * All but first results returned. * diff --git a/tests/phpunit/CiviTest/CiviUnitTestCase.php b/tests/phpunit/CiviTest/CiviUnitTestCase.php index cb83d109fc..9a2b171f98 100644 --- a/tests/phpunit/CiviTest/CiviUnitTestCase.php +++ b/tests/phpunit/CiviTest/CiviUnitTestCase.php @@ -1730,27 +1730,6 @@ class CiviUnitTestCase extends PHPUnit_Extensions_Database_TestCase { return $result; } - /** - * Delete a UF Join Entry. - * - * @param array $params - * with missing uf_group_id - */ - public function ufjoinDelete($params = NULL) { - if ($params === NULL) { - $params = array( - 'is_active' => 1, - 'module' => 'CiviEvent', - 'entity_table' => 'civicrm_event', - 'entity_id' => 3, - 'weight' => 1, - 'uf_group_id' => '', - ); - } - - crm_add_uf_join($params); - } - /** * @param array $params * Optional parameters. -- 2.25.1