mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/CodeMirror
synced 2024-11-23 22:03:28 +00:00
HooksTest: Swap out use of deprecated getOptionKinds()
Change-Id: I992b102de6fc4e346d27d6a729c5b518a6d2fb3c
This commit is contained in:
parent
f98b120974
commit
170869190c
|
@ -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'] );
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue