Merge pull request #2540 from eileenmcnaughton/CRM-14235
[civicrm-core.git] / api / v3 / examples / ReportTemplate / Getrows.php
index 6b29966390e8a821a74875009fc87c335e8e6c8e..298439eca70297b1542afc264d58b81ef8002973 100644 (file)
@@ -6,6 +6,12 @@
 function report_template_getrows_example(){
 $params = array(
   'report_id' => 'contact/summary',
+  'options' => array(
+      'metadata' => array(
+          '0' => 'labels',
+          '1' => 'title',
+        ),
+    ),
 );
 
 try{
@@ -47,6 +53,16 @@ function report_template_getrows_expectedresult(){
           'civicrm_country_name' => 'United States',
         ),
     ),
+  'metadata' => array(
+      'title' => 'ERROR: Title is not Set',
+      'labels' => array(
+          'civicrm_contact_sort_name' => 'Contact Name',
+          'civicrm_contact_id' => 'Internal Contact ID',
+          'civicrm_address_street_address' => 'Street Address',
+          'civicrm_address_city' => 'City',
+          'civicrm_country_name' => 'Country',
+        ),
+    ),
 );
 
   return $expectedResult;
@@ -57,16 +73,16 @@ function report_template_getrows_expectedresult(){
 * This example has been generated from the API test suite. The test that created it is called
 *
 * testReportTemplateGetRowsContactSummary and can be found in
-* http://svn.civicrm.org/civicrm/trunk/tests/phpunit/CiviTest/api/v3/ReportTemplateTest.php
+* https://github.com/civicrm/civicrm-core/blob/master/tests/phpunit/api/v3/ReportTemplateTest.php
 *
 * You can see the outcome of the API tests at
-* http://tests.dev.civicrm.org/trunk/results-api_v3
+* https://test.civicrm.org/job/CiviCRM-master-git/
 *
 * To Learn about the API read
-* http://book.civicrm.org/developer/current/techniques/api/
+* http://wiki.civicrm.org/confluence/display/CRMDOC/Using+the+API
 *
-* and review the wiki at
-* http://wiki.civicrm.org/confluence/display/CRMDOC/CiviCRM+Public+APIs
+* Browse the api on your own site with the api explorer
+* http://MYSITE.ORG/path/to/civicrm/api/explorer
 *
 * Read more about testing here
 * http://wiki.civicrm.org/confluence/display/CRM/Testing