public function RoleSplitFilterTest::testNoOp in Config Role Split 8
Test that methods that should continue to work do so.
@dataProvider noOpProvider
File
- src/
Tests/ RoleSplitFilterTest.php, line 244
Class
- RoleSplitFilterTest
- Class SplitFilterTest.
Namespace
Drupal\config_role_split\TestsCode
public function testNoOp($method, $arguments, $returnValue) {
$modes = [
'split',
'fork',
'exclude',
];
foreach ($modes as $mode) {
// Create a random split.
$filter = new RoleSplitFilter([
'mode' => $mode,
'roles' => (array) $this
->getRandomGenerator()
->object(),
], '', []);
$actual = call_user_func_array([
$filter,
$method,
], $arguments);
$this
->assertEquals($actual, $returnValue);
}
}