Amritsreekumar has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/332765 )

Change subject: Remove the use of function $wgDefaultUserOptions
......................................................................

Remove the use of function $wgDefaultUserOptions

The use of the function $wgDefaultUserOptions has been removed from different 
extensions, hence it no more has a validity here.

Bug: T155153
Change-Id: Ie6c2cc30f6916db99379e2f7403022ee9bc00561
---
M tests/phpunit/includes/user/UserTest.php
1 file changed, 0 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/65/332765/1

diff --git a/tests/phpunit/includes/user/UserTest.php 
b/tests/phpunit/includes/user/UserTest.php
index fe56d27..25643bf 100644
--- a/tests/phpunit/includes/user/UserTest.php
+++ b/tests/phpunit/includes/user/UserTest.php
@@ -365,9 +365,7 @@
         * @covers User::loadOptions
         */
        public function testAnonOptions() {
-               global $wgDefaultUserOptions;
                $this->user->setOption( 'userjs-someoption', 'test' );
-               $this->assertEquals( $wgDefaultUserOptions['rclimit'], 
$this->user->getOption( 'rclimit' ) );
                $this->assertEquals( 'test', $this->user->getOption( 
'userjs-someoption' ) );
        }
 

-- 
To view, visit https://gerrit.wikimedia.org/r/332765
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: Ie6c2cc30f6916db99379e2f7403022ee9bc00561
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Amritsreekumar <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to