function ReadOnlyStorageTest::testReadOperations

Same name and namespace in other branches
  1. 11.x core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php \Drupal\Tests\Core\Config\ReadOnlyStorageTest::testReadOperations()
  2. 10 core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php \Drupal\Tests\Core\Config\ReadOnlyStorageTest::testReadOperations()
  3. 9 core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php \Drupal\Tests\Core\Config\ReadOnlyStorageTest::testReadOperations()
  4. 8.9.x core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php \Drupal\Tests\Core\Config\ReadOnlyStorageTest::testReadOperations()

Tests read operations.

@legacy-covers ::exists @legacy-covers ::read @legacy-covers ::readMultiple @legacy-covers ::listAll

Attributes

#[DataProvider('readMethodsProvider')]

File

core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php, line 60

Class

ReadOnlyStorageTest
Tests Drupal\Core\Config\ReadOnlyStorage.

Namespace

Drupal\Tests\Core\Config

Code

public function testReadOperations($method, $arguments, $fixture) : void {
  $this->setRandomFixtureConfig($fixture);
  $expected = call_user_func_array([
    $this->memory,
    $method,
  ], $arguments);
  $actual = call_user_func_array([
    $this->storage,
    $method,
  ], $arguments);
  $this->assertEquals($expected, $actual);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.