You are here

public static function TestRestClient::getContactQueryResults in Salesforce Suite 5.0.x

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

Wrapper for test results.

2 calls to TestRestClient::getContactQueryResults()
PullQueueTest::testEnqueue in modules/salesforce_pull/tests/src/Functional/PullQueueTest.php
Test that saving mapped nodes enqueues them for push to Salesforce.
TestRestClient::query in src/Tests/TestRestClient.php
Mock a query result for test_mapping.

File

src/Tests/TestRestClient.php, line 34

Class

TestRestClient
Test Salesforce REST client.

Namespace

Drupal\salesforce\Tests

Code

public static function getContactQueryResults() {
  return json_decode(file_get_contents(__DIR__ . '/contactQuery.json'), JSON_OBJECT_AS_ARRAY);
}