You are here

public function MappedObjectTest::testPull in Salesforce Suite 8.3

Same name and namespace in other branches
  1. 8.4 modules/salesforce_mapping/tests/src/Unit/MappedObjectTest.php \Drupal\Tests\salesforce_mapping\Unit\MappedObjectTest::testPull()
  2. 5.0.x modules/salesforce_mapping/tests/src/Unit/MappedObjectTest.php \Drupal\Tests\salesforce_mapping\Unit\MappedObjectTest::testPull()

@covers ::pull

File

modules/salesforce_mapping/tests/src/Unit/MappedObjectTest.php, line 286

Class

MappedObjectTest
Test Mapped Object instantitation.

Namespace

Drupal\Tests\salesforce_mapping\Unit

Code

public function testPull() {

  // Set sf_object to mock coming from cron pull.
  $this->mapped_object
    ->setSalesforceRecord($this->sf_object);
  $this
    ->assertEquals($this->mapped_object, $this->mapped_object
    ->pull());
}