class FakeRecord
Same name in this branch
- 8.9.x core/modules/system/tests/src/Functional/Database/FakeRecord.php \Drupal\Tests\system\Functional\Database\FakeRecord
Same name in other branches
- 7.x modules/simpletest/tests/database_test.test \FakeRecord
- 9 core/modules/system/tests/src/Functional/Database/FakeRecord.php \Drupal\Tests\system\Functional\Database\FakeRecord
- 10 core/modules/system/tests/src/Functional/Database/FakeRecord.php \Drupal\Tests\system\Functional\Database\FakeRecord
- 11.x 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\system\Tests\Database\FakeRecord
Expanded class hierarchy of FakeRecord
Deprecated
in drupal:8.4.0 and is removed from drupal:9.0.0. Instead use \Drupal\Tests\system\Functional\Database\FakeRecord.
File
-
core/
modules/ system/ src/ Tests/ Database/ FakeRecord.php, line 17
Namespace
Drupal\system\Tests\DatabaseView source
class FakeRecord {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.