You are here

protected function FileStorageTest::update in Drupal 8

Same name and namespace in other branches
  1. 9 core/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php \Drupal\KernelTests\Core\Config\Storage\FileStorageTest::update()
  2. 10 core/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php \Drupal\KernelTests\Core\Config\Storage\FileStorageTest::update()

Overrides ConfigStorageTestBase::update

File

core/tests/Drupal/KernelTests/Core/Config/Storage/FileStorageTest.php, line 48

Class

FileStorageTest
Tests FileStorage operations.

Namespace

Drupal\KernelTests\Core\Config\Storage

Code

protected function update($name, $data) {
  file_put_contents($this->storage
    ->getFilePath($name), $data);
}