protected function DatabaseStorageTest::update in Drupal 10
Same name and namespace in other branches
- 8 core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php \Drupal\KernelTests\Core\Config\Storage\DatabaseStorageTest::update()
- 9 core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php \Drupal\KernelTests\Core\Config\Storage\DatabaseStorageTest::update()
File
- core/
tests/ Drupal/ KernelTests/ Core/ Config/ Storage/ DatabaseStorageTest.php, line 37
Class
- DatabaseStorageTest
- Tests DatabaseStorage operations.
Namespace
Drupal\KernelTests\Core\Config\StorageCode
protected function update($name, $data) {
Database::getConnection()
->update('config')
->fields([
'data' => $data,
])
->condition('name', $name)
->execute();
}