Remove unused function from test class
authoreileen <emcnaughton@wikimedia.org>
Thu, 13 Dec 2018 02:51:58 +0000 (15:51 +1300)
committereileen <emcnaughton@wikimedia.org>
Thu, 13 Dec 2018 09:37:01 +0000 (22:37 +1300)
tests/phpunit/CRMTraits/ACL/PermissionTrait.php
tests/phpunit/CiviTest/CiviUnitTestCase.php

index 356a19a5b7fdd29408fceaff56b605e0fb3736e8..174f2713a755c2422d9ae70217854c78e630da4a 100644 (file)
@@ -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.
    *
index cb83d109fc1ada840ff5cd4c1099f8383aa9cecf..9a2b171f983cd380b41dd7bdc8c8a479733204bc 100644 (file)
@@ -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.