You are here

public function GhostStorageTest::testWriteOperations in Configuration Split 8

Override the dataprovider for write methods.

@dataProvider writeMethodsProvider

File

src/Tests/GhostStorageTest.php, line 35

Class

GhostStorageTest
Tests GhostStorage operations.

Namespace

Drupal\config_split\Tests

Code

public function testWriteOperations($method, $arguments) {
  $source = $this
    ->prophesize(StorageInterface::class);
  $source
    ->{$method}(Argument::any())
    ->shouldNotBeCalled();
  $storage = $this
    ->getStorage($source
    ->reveal());
  $actual = call_user_func_array([
    $storage,
    $method,
  ], $arguments);
  $this
    ->assertTrue($actual);
}