You are here

protected function DatabaseStorageTest::read in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/config/src/Tests/Storage/DatabaseStorageTest.php \Drupal\config\Tests\Storage\DatabaseStorageTest::read()

Overrides ConfigStorageTestBase::read

File

core/modules/config/src/Tests/Storage/DatabaseStorageTest.php, line 32
Contains \Drupal\config\Tests\Storage\DatabaseStorageTest.

Class

DatabaseStorageTest
Tests DatabaseStorage operations.

Namespace

Drupal\config\Tests\Storage

Code

protected function read($name) {
  $data = db_query('SELECT data FROM {config} WHERE name = :name', array(
    ':name' => $name,
  ))
    ->fetchField();
  return unserialize($data);
}