Inserts a single row into the testing table.
File
- drupal/core/modules/system/lib/Drupal/system/Tests/Database/TransactionTest.php, line 325
- Definition of Drupal\system\Tests\Database\TransactionTest.
Class
- TransactionTest
- Tests transaction support, particularly nesting.
Namespace
Drupal\system\Tests\Database
Code
protected function insertRow($name) {
db_insert('test')
->fields(array(
'name' => $name,
))
->execute();
}