MemoryStorageTest.php
Same filename in this branch
Same filename in other branches
- 9 core/tests/Drupal/KernelTests/Core/Config/Storage/MemoryStorageTest.php
- 9 core/tests/Drupal/KernelTests/Core/KeyValueStore/MemoryStorageTest.php
- 8.9.x core/tests/Drupal/KernelTests/Core/Config/Storage/MemoryStorageTest.php
- 8.9.x core/tests/Drupal/KernelTests/Core/KeyValueStore/MemoryStorageTest.php
- 10 core/tests/Drupal/KernelTests/Core/Config/Storage/MemoryStorageTest.php
- 10 core/tests/Drupal/KernelTests/Core/KeyValueStore/MemoryStorageTest.php
Namespace
Drupal\KernelTests\Core\KeyValueStoreFile
-
core/
tests/ Drupal/ KernelTests/ Core/ KeyValueStore/ MemoryStorageTest.php
View source
<?php
declare (strict_types=1);
namespace Drupal\KernelTests\Core\KeyValueStore;
use Drupal\Core\DependencyInjection\ContainerBuilder;
use Drupal\Core\KeyValueStore\KeyValueFactory;
/**
* Tests the key-value memory storage.
*
* @group KeyValueStore
*/
class MemoryStorageTest extends StorageTestBase {
/**
* {@inheritdoc}
*/
public function register(ContainerBuilder $container) : void {
parent::register($container);
$container->register('keyvalue.memory', 'Drupal\\Core\\KeyValueStore\\KeyValueMemoryFactory');
$parameter[KeyValueFactory::DEFAULT_SETTING] = 'keyvalue.memory';
$container->setParameter('factory.keyvalue', $parameter);
}
}
Classes
Title | Deprecated | Summary |
---|---|---|
MemoryStorageTest | Tests the key-value memory storage. |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.