HooksTest: Swap out use of deprecated getOptionKinds()

Change-Id: I992b102de6fc4e346d27d6a729c5b518a6d2fb3c
This commit is contained in:
James D. Forrester 2024-06-14 11:34:06 -04:00
parent f98b120974
commit 170869190c

View file

@ -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'] );
}