function ConfigStorageTest::setUp in MongoDB 8
File
- src/
Tests/ ConfigStorageTest.php, line 37 - Definition of Drupal\mongodb\Tests\ConfigStorageTest.
Class
- ConfigStorageTest
- Tests ConfigStorage controller operations.
Namespace
Drupal\mongodb\TestsCode
function setUp() {
parent::setUp();
$this->storage = new MongodbConfigStorage(\Drupal::service('mongo'), CONFIG_ACTIVE_DIRECTORY);
// FileStorage::listAll() requires other configuration data to exist.
$this->storage
->write('system.performance', array(
'foo' => 'bar',
));
}