You are here

public function TestRestClient::objectUpsert in Salesforce Suite 8.3

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

@inheritDoc

Overrides RestClient::objectUpsert

File

src/Tests/TestRestClient.php, line 120

Class

TestRestClient
Test Salesforce REST client.

Namespace

Drupal\salesforce\Tests

Code

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