diff options
author | Tim Starling <tstarling@wikimedia.org> | 2024-05-30 11:55:18 +1000 |
---|---|---|
committer | Tim Starling <tstarling@wikimedia.org> | 2024-06-13 15:22:47 +0000 |
commit | b4591f1960c32949c7444932ac0fe14aef2b378b (patch) | |
tree | 90ea090092f13e4f420b0d7b254f5944a052f975 /tests/phpunit/includes/api/ApiOptionsTest.php | |
parent | ba875e4b321cdac2a063b8f9dea9efb1b90b12c9 (diff) | |
download | mediawikicore-b4591f1960c32949c7444932ac0fe14aef2b378b.tar.gz mediawikicore-b4591f1960c32949c7444932ac0fe14aef2b378b.zip |
user: Add "global" parameter to ApiOptions
Add a "global" parameter to ApiOptions which allows it to update or
override global preferences.
Bug: T323076
Depends-On: I686c0091768ed330683fff89201fae4f93b8a1c4
Change-Id: Ieb2d0c0d0da5c51b2a47ed8a967a47b4e7ad4577
Diffstat (limited to 'tests/phpunit/includes/api/ApiOptionsTest.php')
-rw-r--r-- | tests/phpunit/includes/api/ApiOptionsTest.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/phpunit/includes/api/ApiOptionsTest.php b/tests/phpunit/includes/api/ApiOptionsTest.php index 543db3be5726..d40aa066a949 100644 --- a/tests/phpunit/includes/api/ApiOptionsTest.php +++ b/tests/phpunit/includes/api/ApiOptionsTest.php @@ -64,7 +64,7 @@ class ApiOptionsTest extends ApiTestCase { $this->userOptionsManagerMock = $this->createNoOpMock( UserOptionsManager::class, - [ 'getOptions', 'resetOptionsByName', 'setOption' ] + [ 'getOptions', 'resetOptionsByName', 'setOption', 'isOptionGlobal' ] ); // Needs to return something $this->userOptionsManagerMock->method( 'getOptions' )->willReturn( [] ); |