You are here

public function RoleSplitFilterTest::testFilterDelete in Config Role Split 8

Test that the filter deletes correctly.

@dataProvider filterDeleteProvider

File

src/Tests/RoleSplitFilterTest.php, line 199

Class

RoleSplitFilterTest
Class SplitFilterTest.

Namespace

Drupal\config_role_split\Tests

Code

public function testFilterDelete($roles, $name, $mode, $true, $false) {
  $filter = new RoleSplitFilter([
    'mode' => $mode,
    'roles' => $roles,
  ], '', []);
  $this
    ->assertEquals($true, $filter
    ->filterDelete($name, TRUE));
  $this
    ->assertEquals($false, $filter
    ->filterDelete($name, FALSE));
}