You are here

public function ReadOnlyStorageTest::testReadOperations in Drupal 9

Same name and namespace in other branches
  1. 8 core/tests/Drupal/Tests/Core/Config/ReadOnlyStorageTest.php \Drupal\Tests\Core\Config\ReadOnlyStorageTest::testReadOperations()

@covers ::exists @covers ::read @covers ::readMultiple @covers ::listAll

@dataProvider readMethodsProvider

File

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

Class

ReadOnlyStorageTest
@coversDefaultClass \Drupal\Core\Config\ReadOnlyStorage @group Config

Namespace

Drupal\Tests\Core\Config

Code

public function testReadOperations($method, $arguments, $fixture) {
  $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);
}