Code Coverage
 
Lines
Functions and Methods
Classes and Traits
Total
n/a
0 / 0
n/a
0 / 0
CRAP
n/a
0 / 0
SpecialBetaFeatures
n/a
0 / 0
n/a
0 / 0
2
n/a
0 / 0
 __construct
n/a
0 / 0
n/a
0 / 0
1
 getRedirect
n/a
0 / 0
n/a
0 / 0
1
1<?php
2
3namespace MediaWiki\Extension\BetaFeatures;
4
5use MediaWiki\SpecialPage\RedirectSpecialPage;
6use MediaWiki\SpecialPage\SpecialPage;
7use MediaWiki\Title\Title;
8
9/**
10 * @codeCoverageIgnore
11 */
12class SpecialBetaFeatures extends RedirectSpecialPage {
13    public function __construct() {
14        parent::__construct( 'BetaFeatures' );
15    }
16
17    /**
18     * @param string|null $subpage
19     * @return Title Always a redirect to [[Special:Preferences#mw-prefsection-betafeatures]]
20     */
21    public function getRedirect( $subpage ) {
22        return SpecialPage::getTitleFor( 'Preferences', false, 'mw-prefsection-betafeatures' );
23    }
24}