public function TestRestClient::query in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 src/Tests/TestRestClient.php \Drupal\salesforce\Tests\TestRestClient::query()
Mock a query result for test_mapping.
Overrides RestClient::query
See also
modules/salesforce_mapping/tests/modules/salesforce_mapping_test/config/install/salesforce_mapping.salesforce_mapping.test_mapping.yml
File
- src/
Tests/ TestRestClient.php, line 43
Class
- TestRestClient
- Test Salesforce REST client.
Namespace
Drupal\salesforce\TestsCode
public function query(SelectQueryInterface $query) {
return new SelectQueryResult(self::getContactQueryResults());
}