MemoryStorageTest.php in Drupal 10
File
core/tests/Drupal/KernelTests/Core/Config/Storage/MemoryStorageTest.php
View source
<?php
namespace Drupal\KernelTests\Core\Config\Storage;
use Drupal\Core\Config\MemoryStorage;
class MemoryStorageTest extends ConfigStorageTestBase {
protected function setUp() : void {
parent::setUp();
$this->storage = new MemoryStorage();
$this->storage
->write('system.performance', []);
}
protected function read($name) {
return $this->storage
->read($name);
}
protected function insert($name, $data) {
$this->storage
->write($name, $data);
}
protected function update($name, $data) {
$this->storage
->write($name, $data);
}
protected function delete($name) {
$this->storage
->delete($name);
}
public function testInvalidStorage() {
$this
->markTestSkipped('MemoryStorage cannot be invalid.');
}
}