From f899561ef3f343330bedbcd0f10cd27a240b1675 Mon Sep 17 00:00:00 2001 From: Coleman Watts Date: Sat, 4 May 2013 14:31:26 -0700 Subject: [PATCH] Add membership metadata CRM-12464 ---------------------------------------- * CRM-12464: http://issues.civicrm.org/jira/browse/CRM-12464 --- tests/phpunit/CRM/Core/PseudoConstantTest.php | 10 ++++++++++ xml/schema/Member/Membership.xml | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/tests/phpunit/CRM/Core/PseudoConstantTest.php b/tests/phpunit/CRM/Core/PseudoConstantTest.php index 695191f393..af1a2d6997 100644 --- a/tests/phpunit/CRM/Core/PseudoConstantTest.php +++ b/tests/phpunit/CRM/Core/PseudoConstantTest.php @@ -419,6 +419,16 @@ class CRM_Core_PseudoConstantTest extends CiviUnitTestCase { 'sample' => 'Approved', ), ), + 'CRM_Member_DAO_Membership' => array( + array( + 'fieldName' => 'status_id', + 'sample' => 'New', + ), + array( + 'fieldName' => 'membership_type_id', + 'sample' => 'Lifetime', + ), + ), ); foreach ($fields as $daoName => $daoFields) { diff --git a/xml/schema/Member/Membership.xml b/xml/schema/Member/Membership.xml index 8c7ef93bb9..693b67765c 100644 --- a/xml/schema/Member/Membership.xml +++ b/xml/schema/Member/Membership.xml @@ -51,6 +51,11 @@ false true FK to Membership Type + + civicrm_membership_type
+ id + label +
1.5 @@ -111,6 +116,11 @@ false true FK to Membership Status + + civicrm_membership_status
+ id + label +
1.5 -- 2.25.1