Commit | Line | Data |
---|---|---|
19b53e5b C |
1 | <?php |
2 | ||
380f3545 TO |
3 | /* |
4 | +--------------------------------------------------------------------+ | |
7d61e75f | 5 | | Copyright CiviCRM LLC. All rights reserved. | |
380f3545 | 6 | | | |
7d61e75f TO |
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 | | |
380f3545 TO |
10 | +--------------------------------------------------------------------+ |
11 | */ | |
12 | ||
13 | /** | |
14 | * | |
15 | * @package CRM | |
ca5cec67 | 16 | * @copyright CiviCRM LLC https://civicrm.org/licensing |
380f3545 TO |
17 | * $Id$ |
18 | * | |
19 | */ | |
20 | ||
21 | ||
19b53e5b C |
22 | namespace api\v4\Action; |
23 | ||
24 | use api\v4\UnitTestCase; | |
25 | use api\v4\Traits\TableDropperTrait; | |
26 | ||
27 | abstract class BaseCustomValueTest extends UnitTestCase { | |
28 | ||
29 | use \api\v4\Traits\OptionCleanupTrait { | |
30 | setUp as setUpOptionCleanup; | |
31 | } | |
32 | use TableDropperTrait; | |
33 | ||
34 | /** | |
35 | * Set up baseline for testing | |
36 | */ | |
37 | public function setUp() { | |
38 | $this->setUpOptionCleanup(); | |
39 | $cleanup_params = [ | |
40 | 'tablesToTruncate' => [ | |
41 | 'civicrm_custom_group', | |
42 | 'civicrm_custom_field', | |
43 | ], | |
44 | ]; | |
45 | ||
c752d94b | 46 | $this->dropByPrefix('civicrm_value_my'); |
19b53e5b C |
47 | $this->cleanup($cleanup_params); |
48 | } | |
49 | ||
50 | } |