You are here

protected function CachedStorageTest::insert in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config/src/Tests/Storage/CachedStorageTest.php \Drupal\config\Tests\Storage\CachedStorageTest::insert()

Overrides ConfigStorageTestBase::insert

File

core/modules/config/src/Tests/Storage/CachedStorageTest.php, line 67
Contains \Drupal\config\Tests\Storage\CachedStorageTest.

Class

CachedStorageTest
Tests CachedStorage operations.

Namespace

Drupal\config\Tests\Storage

Code

protected function insert($name, $data) {
  $this->fileStorage
    ->write($name, $data);
  $this->cache
    ->set($name, $data);
}