protected function TransactionTest::insertRow in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php \Drupal\KernelTests\Core\Database\TransactionTest::insertRow()
- 9 core/tests/Drupal/KernelTests/Core/Database/TransactionTest.php \Drupal\KernelTests\Core\Database\TransactionTest::insertRow()
Inserts a single row into the testing table.
File
- core/
tests/ Drupal/ KernelTests/ Core/ Database/ TransactionTest.php, line 280
Class
- TransactionTest
- Tests the transaction abstraction system.
Namespace
Drupal\KernelTests\Core\DatabaseCode
protected function insertRow($name) {
$this->connection
->insert('test')
->fields([
'name' => $name,
])
->execute();
}