public function SObjectTest::testFieldNotExists in Salesforce Suite 5.0.x
Same name and namespace in other branches
- 8.4 tests/src/Unit/SObjectTest.php \Drupal\Tests\salesforce\Unit\SObjectTest::testFieldNotExists()
- 8.3 tests/src/Unit/SObjectTest.php \Drupal\Tests\salesforce\Unit\SObjectTest::testFieldNotExists()
Test invalid field call.
File
- tests/
src/ Unit/ SObjectTest.php, line 58
Class
- SObjectTest
- Test Object instantitation.
Namespace
Drupal\Tests\salesforce\UnitCode
public function testFieldNotExists() {
$sobject = new SObject([
'id' => '1234567890abcde',
'attributes' => [
'type' => 'dummy',
],
]);
$this
->assertNull($sobject
->field('key'));
}