From 170869190c1c27418d135b19d2b680b87c125cf4 Mon Sep 17 00:00:00 2001 From: "James D. Forrester" Date: Fri, 14 Jun 2024 11:34:06 -0400 Subject: [PATCH] HooksTest: Swap out use of deprecated getOptionKinds() Change-Id: I992b102de6fc4e346d27d6a729c5b518a6d2fb3c --- tests/phpunit/HookTest.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/phpunit/HookTest.php b/tests/phpunit/HookTest.php index e44f9338..da411f63 100644 --- a/tests/phpunit/HookTest.php +++ b/tests/phpunit/HookTest.php @@ -82,8 +82,8 @@ class HookTest extends MediaWikiIntegrationTestCase { $user = self::getTestUser()->getUser(); $context = RequestContext::getMain(); $context->setTitle( Title::newFromText( __METHOD__ ) ); - $kinds = $this->getServiceContainer()->getUserOptionsManager() - ->getOptionKinds( $user, $context, [ 'usecodemirror' => 1 ] ); + $kinds = $this->getServiceContainer()->getPreferencesFactory() + ->getResetKinds( $user, $context, [ 'usecodemirror' => 1 ] ); self::assertEquals( 'registered', $kinds['usecodemirror'] ); }