protected function DatabaseTransactionTestCase::insertRow

Insert a single row into the testing table.

4 calls to DatabaseTransactionTestCase::insertRow()
DatabaseTransactionTestCase::testTransactionStacking in drupal-7.x/modules/simpletest/tests/database_test.test
Test transaction stacking and commit / rollback.
DatabaseTransactionTestCase::testTransactionStacking in drupal-7.x/modules/simpletest/tests/database_test.test
Test transaction stacking and commit / rollback.
DatabaseTransactionTestCase::testTransactionWithDdlStatement in drupal-7.x/modules/simpletest/tests/database_test.test
Test the compatibility of transactions with DDL statements.
DatabaseTransactionTestCase::testTransactionWithDdlStatement in drupal-7.x/modules/simpletest/tests/database_test.test
Test the compatibility of transactions with DDL statements.

Archivo

drupal-7.x/modules/simpletest/tests/database_test.test, line 3618

Class

DatabaseTransactionTestCase
Test transaction support, particularly nesting.

Código

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