diff --git a/core/tests/Drupal/Tests/Core/Route/RouterRoleTest.php b/core/tests/Drupal/Tests/Core/Route/RouterRoleTest.php index 57a5a08..8b67ec8 100644 --- a/core/tests/Drupal/Tests/Core/Route/RouterRoleTest.php +++ b/core/tests/Drupal/Tests/Core/Route/RouterRoleTest.php @@ -106,7 +106,7 @@ public function testRoleAccessProvider() { $account_none = new User(array('uid' => 4), 'user'); $this->accounts[] = $account_none; - // Setup expected values, so which path can be access by which user. + // Setup expected values; so which path can be access by which user. return array( array('role_test_1', array($account_1, $account_12)), array('role_test_2', array($account_2, $account_12)), @@ -114,7 +114,17 @@ public function testRoleAccessProvider() { ); } + /** + * Returns accounts filtered by the passed in accounts. + * + * @param array $grant_users + * A list of users which should not be part of the result list. + * + * @return array + * All users which are not granted. + */ public function accountsToDeny($grant_users) { +// return array_diff_assoc($this->accounts, $grant_users); return array_filter($this->accounts, function($account) use ($grant_users) { foreach ($grant_users as $grant_user) { if ($account == $grant_user) {