Merge pull request #22635 from eileenmcnaughton/trait
[civicrm-core.git] / tests / phpunit / api / v4 / DataSets / ConformanceTest.json
1 {
2 "Contact": [
3 {
4 "first_name": "Janice",
5 "last_name": "Voss",
6 "contact_type": "Individual",
7 "@ref": "test_contact_1"
8 },
9 {
10 "first_name": "Jim",
11 "last_name": "Henson",
12 "contact_type": "Individual",
13 "@ref": "test_contact_2"
14 }
15 ],
16 "Case": [
17 {
18 "case_type_id": "@ref test_case_type_1.id",
19 "status_id": 1,
20 "contact_id": "@ref test_contact_1.id",
21 "creator_id": "@ref test_contact_1.id"
22 }
23 ],
24 "CustomGroup": [
25 {
26 "name": "MyFavoriteThings",
27 "title": "MyFavoriteThings",
28 "extends": "Contact"
29 }
30 ],
31 "Event": [
32 {
33 "start_date": "20371010000000",
34 "title": "The Singularity",
35 "event_type_id": "major_historical_event"
36 }
37 ],
38 "Group": [
39 {
40 "name": "the_group",
41 "title": "The Group"
42 }
43 ],
44 "Mapping": [
45 {
46 "name": "the_mapping",
47 "mapping_type_id": "1"
48 }
49 ],
50 "Activity": [
51 {
52 "subject": "Test A Phone Activity",
53 "activity_type_id:name": "Phone Call",
54 "source_contact_id": "@ref test_contact_1.id"
55 }
56 ],
57 "Contribution": [
58 {
59 "total_amount": 999.89,
60 "financial_type_id:name": "Donation",
61 "contact_id": "@ref test_contact_1.id"
62 }
63 ],
64 "Pledge" : [
65 {
66 "contact_id": "@ref test_contact_1.id",
67 "original_installment_amount" : 10,
68 "amount" : 10,
69 "start_date" : "now",
70 "create_date" : "now",
71 "status_id:name" : "Pending"
72 }
73 ],
74 "PaymentProcessor" : [
75 {
76 "payment_processor_type_id:name": "Dummy"
77 }
78 ],
79 "Batch": [
80 {
81 "title": "Batch 433397",
82 "name": "Batch_433397",
83 "status_id": "1"
84 }
85 ],
86 "Product": [
87 {
88 "name": "Test Product",
89 "price": "10.00",
90 "sku": "Test SKU",
91 "financial_type_id:name": "Donation",
92 "min_contribution": "10.00"
93 }
94 ],
95 "MembershipType": [
96 {
97 "name": "General",
98 "period_type" : "fixed",
99 "financial_type_id:name": "Donation",
100 "duration_unit" : "month",
101 "member_of_contact_id" : "@ref test_contact_1.id"
102 }
103 ],
104 "ContributionPage": [
105 {
106 "name": "General"
107 }
108 ],
109 "MembershipType": [
110 {
111 "domain_id": "1",
112 "name": "General",
113 "description": "Regular annual membership.",
114 "member_of_contact_id": "1",
115 "financial_type_id": "2",
116 "minimum_fee": "100.000000000",
117 "duration_unit": "year",
118 "duration_interval": "2",
119 "period_type": "rolling",
120 "relationship_type_id": [
121 "7"
122 ],
123 "relationship_direction": [
124 "b_a"
125 ],
126 "visibility": "Public",
127 "weight": "1",
128 "auto_renew": "0",
129 "is_active": "1"
130 }
131 ],
132 "Membership": [
133 {
134 "membership_type_id:name": "General",
135 "contact_id" : "@ref test_contact_1.id",
136 "status_id:name" : "Pending"
137 }
138 ]
139 }