You are here

public function TestRestClient::objects in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 src/Tests/TestRestClient.php \Drupal\salesforce\Tests\TestRestClient::objects()
  2. 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\Tests

Code

public function objects(array $conditions = [
  'updateable' => TRUE,
], $reset = FALSE) {
  return json_decode(file_get_contents(__DIR__ . '/objects.json'), JSON_OBJECT_AS_ARRAY);
}