4 +--------------------------------------------------------------------+
5 | Copyright CiviCRM LLC. All rights reserved. |
7 | This work is published under the GNU AGPLv3 license with some |
8 | permitted exceptions and without any warranty. For full license |
9 | and copyright information, see https://civicrm.org/licensing |
10 +--------------------------------------------------------------------+
16 * @copyright CiviCRM LLC https://civicrm.org/licensing
22 namespace api\v
4\Action
;
24 use api\v
4\UnitTestCase
;
25 use api\v
4\Traits\TableDropperTrait
;
27 abstract class BaseCustomValueTest
extends UnitTestCase
{
29 use \api\v
4\Traits\OptionCleanupTrait
{
30 setUp
as setUpOptionCleanup
;
32 use TableDropperTrait
;
35 * Set up baseline for testing
37 public function setUp() {
38 $this->setUpOptionCleanup();
40 'tablesToTruncate' => [
41 'civicrm_custom_group',
42 'civicrm_custom_field',
46 $this->dropByPrefix('civicrm_value_mycontact');
47 $this->cleanup($cleanup_params);