public function TestRestClient::objects in Salesforce Suite 8.3
Same name and namespace in other branches
- 8.4 src/Tests/TestRestClient.php \Drupal\salesforce\Tests\TestRestClient::objects()
- 5.0.x src/Tests/TestRestClient.php \Drupal\salesforce\Tests\TestRestClient::objects()
Hard-code a short list of objects for testing.
Overrides RestClient::objects
File
- src/
Tests/ TestRestClient.php, line 39
Class
- TestRestClient
- Test Salesforce REST client.
Namespace
Drupal\salesforce\TestsCode
public function objects(array $conditions = [
'updateable' => TRUE,
], $reset = FALSE) {
return json_decode(file_get_contents(__DIR__ . '/objects.json'), JSON_OBJECT_AS_ARRAY);
}