1 database_test.test protected DatabaseTransactionTestCase::insertRow($name)

Insert a single row into the testing table.

File

core/modules/simpletest/tests/database_test.test, line 3525
Database tests.

Class

DatabaseTransactionTestCase
Test transaction support, particularly nesting.

Code

protected function insertRow($name) {
  db_insert('test')
    ->fields(array(
      'name' => $name,
    ))
    ->execute();
}