You are here

public function RoleSplitFilterTest::noOpProvider in Config Role Split 8

Provide the methods that should continue to work.

File

src/Tests/RoleSplitFilterTest.php, line 257

Class

RoleSplitFilterTest
Class SplitFilterTest.

Namespace

Drupal\config_role_split\Tests

Code

public function noOpProvider() {
  $data = (array) $this
    ->getRandomGenerator()
    ->object();
  $name = $this
    ->randomMachineName();

  // @codingStandardsIgnoreStart
  return [
    [
      'filterExists',
      [
        $this
          ->randomMachineName(),
        TRUE,
      ],
      TRUE,
    ],
    [
      'filterExists',
      [
        $this
          ->randomMachineName(),
        FALSE,
      ],
      FALSE,
    ],
    [
      'filterRename',
      [
        $this
          ->randomMachineName(),
        $this
          ->randomMachineName(),
        TRUE,
      ],
      TRUE,
    ],
    [
      'filterRename',
      [
        $this
          ->randomMachineName(),
        $this
          ->randomMachineName(),
        FALSE,
      ],
      FALSE,
    ],
    [
      'filterListAll',
      [
        $this
          ->randomMachineName(),
        $data,
      ],
      $data,
    ],
    [
      'filterGetAllCollectionNames',
      [
        $data,
      ],
      $data,
    ],
    [
      'filterGetCollectionName',
      [
        $name,
      ],
      $name,
    ],
  ];

  // @codingStandardsIgnoreEnd
}