public function TestRestClient::objects in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 src/Tests/TestRestClient.php \Drupal\salesforce\Tests\TestRestClient::objects()
- 8.3 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 56
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);
}