getUser(); $this->setMwGlobals( 'wgTitle', \Title::newFromText( __METHOD__ ) ); $kinds = $user->getOptionKinds( RequestContext::getMain(), [ 'usecodemirror' => 1 ] ); self::assertEquals( 'registered', $kinds['usecodemirror'] ); } }