protected function ConfigStorageTest::read in MongoDB 8
1 call to ConfigStorageTest::read()
- ConfigStorageTest::testCRUD in src/
Tests/ ConfigStorageTest.php - Overrides Drupal\config\Tests\Storage\ConfigStorageTestBase::testCRUD().
File
- src/
Tests/ ConfigStorageTest.php, line 140 - Definition of Drupal\mongodb\Tests\ConfigStorageTest.
Class
- ConfigStorageTest
- Tests ConfigStorage controller operations.
Namespace
Drupal\mongodb\TestsCode
protected function read($name) {
$result = \Drupal::service('mongo')
->get('config.active')
->findOne(array(
'_id' => $name,
));
unset($result['_id']);
return $result;
}