function DatabaseStorageTest::update

Same name in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php \Drupal\KernelTests\Core\Config\Storage\DatabaseStorageTest::update()
  2. 10 core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php \Drupal\KernelTests\Core\Config\Storage\DatabaseStorageTest::update()
  3. 11.x core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php \Drupal\KernelTests\Core\Config\Storage\DatabaseStorageTest::update()

Overrides ConfigStorageTestBase::update

File

core/tests/Drupal/KernelTests/Core/Config/Storage/DatabaseStorageTest.php, line 37

Class

DatabaseStorageTest
Tests DatabaseStorage operations.

Namespace

Drupal\KernelTests\Core\Config\Storage

Code

protected function update($name, $data) {
    Database::getConnection()->update('config')
        ->fields([
        'data' => $data,
    ])
        ->condition('name', $name)
        ->execute();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.