public function SObjectTest::testObjectBadId in Salesforce Suite 8.4
Same name and namespace in other branches
- 8.3 tests/src/Unit/SObjectTest.php \Drupal\Tests\salesforce\Unit\SObjectTest::testObjectBadId()
- 5.0.x tests/src/Unit/SObjectTest.php \Drupal\Tests\salesforce\Unit\SObjectTest::testObjectBadId()
Test object instantiation with bad ID.
File
- tests/
src/ Unit/ SObjectTest.php, line 42
Class
- SObjectTest
- Test Object instantitation.
Namespace
Drupal\Tests\salesforce\UnitCode
public function testObjectBadId() {
$this
->expectException(\Exception::class);
new SObject([
'id' => '1234567890',
'attributes' => [
'type' => 'dummy',
],
]);
}