* @deprecated since 1.32, use MagicWordFactory::get
*/
public static function get( $id ) {
+ wfDeprecated( __METHOD__, '1.32' );
return MediaWikiServices::getInstance()->getMagicWordFactory()->get( $id );
}
* @deprecated since 1.32, use MagicWordFactory::getVariableIDs
*/
public static function getVariableIDs() {
+ wfDeprecated( __METHOD__, '1.32' );
return MediaWikiServices::getInstance()->getMagicWordFactory()->getVariableIDs();
}
* @deprecated since 1.32, use MagicWordFactory::getSubstIDs
*/
public static function getSubstIDs() {
+ wfDeprecated( __METHOD__, '1.32' );
return MediaWikiServices::getInstance()->getMagicWordFactory()->getSubstIDs();
}
* @deprecated since 1.32, use MagicWordFactory::getCacheTTL
*/
public static function getCacheTTL( $id ) {
+ wfDeprecated( __METHOD__, '1.32' );
return MediaWikiServices::getInstance()->getMagicWordFactory()->getCacheTTL( $id );
}
* @deprecated since 1.32, use MagicWordFactory::getDoubleUnderscoreArray
*/
public static function getDoubleUnderscoreArray() {
+ wfDeprecated( __METHOD__, '1.32' );
return MediaWikiServices::getInstance()->getMagicWordFactory()->getDoubleUnderscoreArray();
}
}
public function testVariables() {
- $this->assertSame( MagicWord::getVariableIDs(), $this->doQuery( 'variables' ) );
+ $this->assertSame(
+ MediaWikiServices::getInstance()->getMagicWordFactory()->getVariableIDs(),
+ $this->doQuery( 'variables' )
+ );
}
public function testProtocols() {