CRM-12146 - Add test case for Group.get(group_id=>1) and Contact.get(contact_id=>1).
authorTim Otten <totten@civicrm.org>
Tue, 26 Mar 2013 04:07:16 +0000 (00:07 -0400)
committerTim Otten <totten@civicrm.org>
Tue, 26 Mar 2013 04:07:16 +0000 (00:07 -0400)
commitafb0ff51bd94657c346c860e4b2f040c2d4c9ae3
treeede31f3ebf8068e12bb4155e799ca20253367dd0
parent53ed8466be0f372364375b8e7348e52324f2d6e4
CRM-12146 - Add test case for Group.get(group_id=>1) and Contact.get(contact_id=>1).

I tried inspecting the DAO_*::fields() metadata to determine which entities
and field names to test.  This can be done (if you see that the array-keys
are unique-names and the 'name' properties ar enon-unique-names), but it
doesn't ultimately help because the XML schema for group doesn't officially
list group_id as a unique-name.  I'm nervous that changing that schema would
have unintended consequences, so...  this patch uses a more conservative
approach (whitelisting/hardcoding certain entities/unique-names).
tests/phpunit/api/v3/SyntaxConformanceAllEntitiesTest.php