protected function ConfigSnapshotStorageTest::insert in Config Snapshot 8
Overrides ConfigStorageTestBase::insert
File
- tests/
src/ Kernel/ ConfigSnapshotStorageTest.php, line 54
Class
- ConfigSnapshotStorageTest
- Tests ConfigSnapshotStorage operations.
Namespace
Drupal\Tests\config_snapshot\KernelCode
protected function insert($name, $data) {
/* @var \Drupal\config_snapshot\Entity\ConfigSnapshot $config_snapshot */
$config_snapshot = ConfigSnapshot::load('example.module.example_module');
$config_snapshot
->setItem($this->storage
->getCollectionName(), $name, $data)
->save();
return TRUE;
}