You are here

public function TestRestClient::objectCreate in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 src/Tests/TestRestClient.php \Drupal\salesforce\Tests\TestRestClient::objectCreate()
  2. 5.0.x src/Tests/TestRestClient.php \Drupal\salesforce\Tests\TestRestClient::objectCreate()

@inheritDoc

Overrides RestClient::objectCreate

File

src/Tests/TestRestClient.php, line 112

Class

TestRestClient
Test Salesforce REST client.

Namespace

Drupal\salesforce\Tests

Code

public function objectCreate($name, array $params) {
  $random = new Random();
  return new SFID(strtoupper($random
    ->string(SFID::MAX_LENGTH)));
}