You are here

public function RoleSplitFilterTest::testFilterDeleteAll in Config Role Split 8

Test that the filter deletes all correctly.

@dataProvider filterDeleteAllProvider

File

src/Tests/RoleSplitFilterTest.php, line 223

Class

RoleSplitFilterTest
Class SplitFilterTest.

Namespace

Drupal\config_role_split\Tests

Code

public function testFilterDeleteAll($mode, $true, $false) {
  $filter = new RoleSplitFilter([
    'mode' => $mode,
    'roles' => (array) $this
      ->getRandomGenerator()
      ->object(),
  ], '', []);
  $this
    ->assertEquals($true, $filter
    ->filterDeleteAll($this
    ->randomMachineName(), TRUE));
  $this
    ->assertEquals($false, $filter
    ->filterDeleteAll($this
    ->randomMachineName(), FALSE));
}