You are here

public function SObjectTest::testObjectNoType in Salesforce Suite 8.4

Same name and namespace in other branches
  1. 8.3 tests/src/Unit/SObjectTest.php \Drupal\Tests\salesforce\Unit\SObjectTest::testObjectNoType()
  2. 5.0.x tests/src/Unit/SObjectTest.php \Drupal\Tests\salesforce\Unit\SObjectTest::testObjectNoType()

Test object instantiation with no type.

File

tests/src/Unit/SObjectTest.php, line 50

Class

SObjectTest
Test Object instantitation.

Namespace

Drupal\Tests\salesforce\Unit

Code

public function testObjectNoType() {
  $this
    ->expectException(\Exception::class);
  new SObject([
    'id' => '1234567890abcde',
  ]);
}