1.20.x database_test.test | protected DatabaseTransactionTestCase::insertRow($name) |
Insert a single row into the testing table.
File
- modules/
simpletest/ tests/ database_test.test, line 3575 - Database tests.
Class
- DatabaseTransactionTestCase
- Test transaction support, particularly nesting.
Code
protected function insertRow($name) {
db_insert('test')
->fields(array(
'name' => $name,
))
->execute();
}