Commit 07736b1e authored by webchick's avatar webchick

Issue #2346215 by Upchuk | alimac: In HandlerFilterPermissionTest fix typo in variable name.

parent 0d9e300f
......@@ -80,15 +80,15 @@ public function testFilterPermission() {
// Test the value options.
$value_options = $view->filter['permission']->getValueOptions();
$permisssion_by_module = [];
$permission_by_module = [];
$permissions = \Drupal::service('user.permissions')->getPermissions();
foreach ($permissions as $name => $permission) {
$permisssion_by_module[$permission['provider']][$name] = $permission;
$permission_by_module[$permission['provider']][$name] = $permission;
}
foreach (array('system' => 'System', 'user' => 'User') as $module => $title) {
$expected = array_map(function ($permission) {
return String::checkPlain(strip_tags($permission['title']));
}, $permisssion_by_module[$module]);
}, $permission_by_module[$module]);
$this->assertEqual($expected, $value_options[$title], 'Ensure the all permissions are available');
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment