You are here

public function ReadonlyStorageTest::writeMethodsProvider in Config Filter 8.2

Same name and namespace in other branches
  1. 8 src/Tests/ReadonlyStorageTest.php \Drupal\config_filter\Tests\ReadonlyStorageTest::writeMethodsProvider()

Provide the methods that should throw an exception.

Return value

array The data

File

src/Tests/ReadonlyStorageTest.php, line 119

Class

ReadonlyStorageTest
Tests ReadonlyStorage operations.

Namespace

Drupal\config_filter\Tests

Code

public function writeMethodsProvider() {
  return [
    [
      'write',
      [
        $this
          ->randomMachineName(),
        $this
          ->randomArray(),
      ],
    ],
    [
      'delete',
      [
        $this
          ->randomMachineName(),
      ],
    ],
    [
      'rename',
      [
        $this
          ->randomMachineName(),
        $this
          ->randomMachineName(),
      ],
    ],
    [
      'deleteAll',
      [
        $this
          ->randomMachineName(),
      ],
    ],
  ];
}