Lib_Test_Partner_QueryTest

The Gravity Forms Salesforce Add-On Lib Test Partner QueryTest class.

Defined (1)

The class is defined in the following location(s).

/lib/Force.com-Toolkit-for-PHP/unit_test/Lib/Test/Partner/QueryTest.php  
  1. class Lib_Test_Partner_QueryTest extends Lib_Test_TestAbstractPartner 
  2. public function getTestName() 
  3. return 'Query'; 
  4.  
  5. protected function _run() 
  6. // $query = 'SELECT Id, Name, BillingStreet, BillingCity, BillingState, Phone, Fax from Account Limit 1'; 
  7. $query = 'SELECT Id, Name from Profile Limit 10'; 
  8.  
  9. $response = $this->_mySforceConnection->query($query); 
  10. $queryResult = new QueryResult($response); 
  11.  
  12. foreach ($queryResult->records as $record) { 
  13. print_r($record);