class FakeRecord
Same name in other branches
- 9 core/modules/system/tests/src/Functional/Database/FakeRecord.php \Drupal\Tests\system\Functional\Database\FakeRecord
- 8.9.x core/modules/system/src/Tests/Database/FakeRecord.php \Drupal\system\Tests\Database\FakeRecord
- 8.9.x 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
Dummy class for fetching 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 \FakeRecord
Expanded class hierarchy of FakeRecord
1 string reference to 'FakeRecord'
- DatabaseFetchTestCase::testQueryFetchClass in modules/
simpletest/ tests/ database_test.test - Confirm that we can fetch a record into a new instance of a custom class.
File
-
modules/
simpletest/ tests/ database_test.test, line 10
View source
class FakeRecord {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.