You are here

public function FilteredStorageTest::readFilterProvider in Config Filter 8

Same name and namespace in other branches
  1. 8.2 src/Tests/FilteredStorageTest.php \Drupal\config_filter\Tests\FilteredStorageTest::readFilterProvider()

Data provider for testReadFilter.

File

src/Tests/FilteredStorageTest.php, line 154

Class

FilteredStorageTest
Tests StorageWrapper operations using the CachedStorage.

Namespace

Drupal\config_filter\Tests

Code

public function readFilterProvider() {

  // @codingStandardsIgnoreStart
  return [
    [
      $this
        ->randomString(),
      'exists',
      'filterExists',
      TRUE,
      TRUE,
    ],
    [
      $this
        ->randomString(),
      'exists',
      'filterExists',
      TRUE,
      FALSE,
    ],
    [
      $this
        ->randomString(),
      'exists',
      'filterExists',
      FALSE,
      TRUE,
    ],
    [
      $this
        ->randomString(),
      'exists',
      'filterExists',
      FALSE,
      FALSE,
    ],
    [
      $this
        ->randomString(),
      'read',
      'filterRead',
      $this
        ->randomArray(),
      $this
        ->randomArray(),
    ],
    [
      $this
        ->randomString(),
      'read',
      'filterRead',
      NULL,
      $this
        ->randomArray(),
    ],
    [
      $this
        ->randomString(),
      'read',
      'filterRead',
      $this
        ->randomArray(),
      NULL,
    ],
    [
      [
        $this
          ->randomString(),
        $this
          ->randomString(),
      ],
      'readMultiple',
      'filterReadMultiple',
      [
        $this
          ->randomArray(),
        $this
          ->randomArray(),
      ],
      [
        $this
          ->randomArray(),
        $this
          ->randomArray(),
      ],
    ],
    [
      [
        $this
          ->randomString(),
        $this
          ->randomString(),
      ],
      'readMultiple',
      'filterReadMultiple',
      [
        $this
          ->randomArray(),
        FALSE,
      ],
      [
        $this
          ->randomArray(),
        $this
          ->randomArray(),
      ],
    ],
  ];

  // @codingStandardsIgnoreEnd
}