X-Git-Url: http://www.aleph1.co.uk/gitweb/?p=yaffs-website;a=blobdiff_plain;f=web%2Fcore%2Ftests%2FDrupal%2FTests%2FCore%2FSession%2FPermissionsHashGeneratorTest.php;h=ef12531187116da28ddbde2d7b07131b7d3559e9;hp=aa980f8c951f6697fff68c43257da080233d5582;hb=0bf8d09d2542548982e81a441b1f16e75873a04f;hpb=74df008bdbb3a11eeea356744f39b802369bda3c diff --git a/web/core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php b/web/core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php index aa980f8c9..ef1253118 100644 --- a/web/core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php +++ b/web/core/tests/Drupal/Tests/Core/Session/PermissionsHashGeneratorTest.php @@ -250,6 +250,7 @@ namespace Drupal\Core\Session; // @todo remove once user_role_permissions() can be injected. if (!function_exists('user_role_permissions')) { + function user_role_permissions(array $roles) { $role_permissions = []; foreach ($roles as $rid) { @@ -257,4 +258,5 @@ if (!function_exists('user_role_permissions')) { } return $role_permissions; } + }