8.5.x DatabaseStorageTest.php DatabaseStorageTest::update($name, $data)
8.0.x DatabaseStorageTest.php DatabaseStorageTest::update($name, $data)
8.1.x DatabaseStorageTest.php DatabaseStorageTest::update($name, $data)
8.2.x DatabaseStorageTest.php DatabaseStorageTest::update($name, $data)
8.3.x DatabaseStorageTest.php DatabaseStorageTest::update($name, $data)
8.4.x DatabaseStorageTest.php DatabaseStorageTest::update($name, $data)
8.6.x DatabaseStorageTest.php DatabaseStorageTest::update($name, $data)

Overrides ConfigStorageTestBase::update

File

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

Class

DatabaseStorageTest
Tests DatabaseStorage operations.

Namespace

Drupal\KernelTests\Core\Config\Storage

Code

protected function update($name, $data) {
  db_update('config')
    ->fields(array(
    'data' => $data,
  ))
    ->condition('name', $name)
    ->execute();
}