You are here

public function SelectQueryResultTest::testNoId in Salesforce Suite 5.0.x

Same name and namespace in other branches
  1. 8.4 tests/src/Unit/SelectQueryResultTest.php \Drupal\Tests\salesforce\Unit\SelectQueryResultTest::testNoId()
  2. 8.3 tests/src/Unit/SelectQueryResultTest.php \Drupal\Tests\salesforce\Unit\SelectQueryResultTest::testNoId()

Test object instantiation with non-existent ID.

File

tests/src/Unit/SelectQueryResultTest.php, line 57

Class

SelectQueryResultTest
Test Object instantitation.

Namespace

Drupal\Tests\salesforce\Unit

Code

public function testNoId() {
  $sfid = new SFID('1234567890abcdg');
  $this
    ->assertFalse($this->sqr
    ->record($sfid));
}