/**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->storage = new DatabaseStorage($this->container->get('database'), 'config');
     $this->invalidStorage = new DatabaseStorage($this->container->get('database'), 'invalid');
     // ::listAll() verifications require other configuration data to exist.
     $this->storage->write('system.performance', array());
 }
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     $this->storage = new StorageReplaceDataWrapper($this->container->get('config.storage'));
     // ::listAll() verifications require other configuration data to exist.
     $this->storage->write('system.performance', array());
     $this->storage->replaceData('system.performance', array('foo' => 'bar'));
 }
Exemple #3
0
 /**
  * {@inheritdoc}
  */
 protected function setUp()
 {
     parent::setUp();
     // Create a directory.
     $this->directory = PublicStream::basePath() . '/config';
     $this->storage = new FileStorage($this->directory);
     $this->invalidStorage = new FileStorage($this->directory . '/nonexisting');
     // FileStorage::listAll() requires other configuration data to exist.
     $this->storage->write('system.performance', $this->config('system.performance')->get());
     $this->storage->write('core.extension', array('module' => array()));
 }
Exemple #4
0
 protected function setUp()
 {
     parent::setUp();
     // Create a directory.
     $dir = PublicStream::basePath() . '/config';
     $this->fileStorage = new FileStorage($dir);
     $this->storage = new CachedStorage($this->fileStorage, \Drupal::service('cache.config'));
     $this->cache = \Drupal::service('cache_factory')->get('config');
     // ::listAll() verifications require other configuration data to exist.
     $this->storage->write('system.performance', array());
 }