You are here

class FakeRecord in Drupal 8

Same name in this branch
  1. 8 core/modules/system/src/Tests/Database/FakeRecord.php \Drupal\system\Tests\Database\FakeRecord
  2. 8 core/modules/system/tests/src/Functional/Database/FakeRecord.php \Drupal\Tests\system\Functional\Database\FakeRecord
Same name and namespace in other branches
  1. 9 core/modules/system/tests/src/Functional/Database/FakeRecord.php \Drupal\Tests\system\Functional\Database\FakeRecord

Fetches into a class.

PDO supports using a new instance of an arbitrary class for records rather than just a stdClass or array. This class is for testing that functionality. (See testQueryFetchClass() below)

Hierarchy

  • class \Drupal\Tests\system\Functional\Database\FakeRecord

Expanded class hierarchy of FakeRecord

1 file declares its use of FakeRecord
FetchTest.php in core/tests/Drupal/KernelTests/Core/Database/FetchTest.php

File

core/modules/system/tests/src/Functional/Database/FakeRecord.php, line 12

Namespace

Drupal\Tests\system\Functional\Database
View source
class FakeRecord {

}

Members