Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F4272402
0001-Add-unit-test-I6392cf.patch
No One
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Authored By
Bawolff
Jul 14 2016, 6:07 AM
2016-07-14 06:07:34 (UTC+0)
Size
1 KB
Referenced Files
None
Subscribers
None
0001-Add-unit-test-I6392cf.patch
View Options
From a3b5230831d08d83a239c1f124a480b382917f5b Mon Sep 17 00:00:00 2001
From: Brian Wolff <bawolff+wn@gmail.com>
Date: Thu, 14 Jul 2016 02:04:48 -0400
Subject: [PATCH] Add unit test I6392cf
Make sure that session limits affect rights added by hook.
Bug: T139670
Change-Id: I9ac17b2493bf7b7647d6b9943ce15e399bd4031d
---
tests/phpunit/includes/session/BotPasswordSessionProviderTest.php | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php b/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php
index 9bc41c0..12f7948 100644
--- a/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php
+++ b/tests/phpunit/includes/session/BotPasswordSessionProviderTest.php
@@ -59,6 +59,13 @@ class BotPasswordSessionProviderTest extends MediaWikiTestCase {
'wgGrantPermissions' => [
'test' => [ 'read' => true ],
],
+ 'wgHooks' => [
+ 'UserGetRights' => [
+ function ( $user, &$rights ) {
+ $rights['editinterface'] = true;
+ }
+ ]
+ ]
] );
}
--
2.0.1
File Metadata
Details
Attached
Mime Type
text/x-diff
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3866187
Default Alt Text
0001-Add-unit-test-I6392cf.patch (1 KB)
Attached To
Mode
T139670: Central auth global groups don't take session rights limit into account
Attached
Detach File
Event Timeline
Log In to Comment