public function MappedObjectTest::testPushUpdate in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 modules/salesforce_mapping/tests/src/Unit/MappedObjectTest.php \Drupal\Tests\salesforce_mapping\Unit\MappedObjectTest::testPushUpdate()
- 5.0.x modules/salesforce_mapping/tests/src/Unit/MappedObjectTest.php \Drupal\Tests\salesforce_mapping\Unit\MappedObjectTest::testPushUpdate()
@covers ::push
File
- modules/
salesforce_mapping/ tests/ src/ Unit/ MappedObjectTest.php, line 195
Class
- MappedObjectTest
- Test Mapped Object instantitation.
Namespace
Drupal\Tests\salesforce_mapping\UnitCode
public function testPushUpdate() {
// Second pass: test update.
$this->mapped_object
->expects($this
->any())
->method('sfid')
->willReturn($this->sfid);
$this->mapping
->expects($this
->any())
->method('alwaysUpsert')
->willReturn(FALSE);
$this->client
->expects($this
->once())
->method('objectUpdate')
->willReturn(NULL);
$this
->assertNull($this->mapped_object
->push());
}