MediaWiki  master
SpecialPageFactoryTest Class Reference

Factory for handling the special page list and generating SpecialPage objects. More...

Inheritance diagram for SpecialPageFactoryTest:
Collaboration diagram for SpecialPageFactoryTest:

Public Member Functions

 newSpecialAllPages ()
 
 provideTestConflictResolution ()
 
 specialPageProvider ()
 
 testConflictResolution ( $test, $aliasesList, $alias, $expectedName, $expectedAlias, $expectWarnings)
 provideTestConflictResolution More...
 
 testConflictResolutionReversed ( $test, $aliasesList, $alias, $expectedName, $expectedAlias, $expectWarnings)
 provideTestConflictResolution More...
 
 testGetAliasListRecursion ()
 
 testGetLocalNameFor ()
 SpecialPageFactory::getLocalNameFor. More...
 
 testGetNames ()
 SpecialPageFactory::getNames. More...
 
 testGetPage ( $spec, $shouldReuseInstance)
 SpecialPageFactory::getPage specialPageProvider. More...
 
 testGetTitleForAlias ()
 SpecialPageFactory::getTitleForAlias. More...
 
 testHookNotCalledTwice ()
 
 testResolveAlias ()
 SpecialPageFactory::resolveAlias. More...
 

Detailed Description

Factory for handling the special page list and generating SpecialPage objects.

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. http://www.gnu.org/copyleft/gpl.html

\MediaWiki\Special\SpecialPageFactory SpecialPage

Definition at line 27 of file SpecialPageFactoryTest.php.

Member Function Documentation

◆ newSpecialAllPages()

SpecialPageFactoryTest::newSpecialAllPages ( )

Definition at line 43 of file SpecialPageFactoryTest.php.

◆ provideTestConflictResolution()

SpecialPageFactoryTest::provideTestConflictResolution ( )

Definition at line 184 of file SpecialPageFactoryTest.php.

◆ specialPageProvider()

SpecialPageFactoryTest::specialPageProvider ( )

Definition at line 47 of file SpecialPageFactoryTest.php.

References false.

◆ testConflictResolution()

SpecialPageFactoryTest::testConflictResolution (   $test,
  $aliasesList,
  $alias,
  $expectedName,
  $expectedAlias,
  $expectWarnings 
)

provideTestConflictResolution

Definition at line 133 of file SpecialPageFactoryTest.php.

References $lang, $name, SpecialPageFactory\getLocalNameFor(), list, SpecialPageFactory\resolveAlias(), and use.

Referenced by testConflictResolutionReversed().

◆ testConflictResolutionReversed()

SpecialPageFactoryTest::testConflictResolutionReversed (   $test,
  $aliasesList,
  $alias,
  $expectedName,
  $expectedAlias,
  $expectWarnings 
)

provideTestConflictResolution

Definition at line 174 of file SpecialPageFactoryTest.php.

References testConflictResolution().

◆ testGetAliasListRecursion()

SpecialPageFactoryTest::testGetAliasListRecursion ( )

Definition at line 260 of file SpecialPageFactoryTest.php.

References SpecialPageFactory\getLocalNameFor(), and use.

◆ testGetLocalNameFor()

SpecialPageFactoryTest::testGetLocalNameFor ( )

◆ testGetNames()

SpecialPageFactoryTest::testGetNames ( )

◆ testGetPage()

SpecialPageFactoryTest::testGetPage (   $spec,
  $shouldReuseInstance 
)

SpecialPageFactory::getPage specialPageProvider.

Definition at line 72 of file SpecialPageFactoryTest.php.

References class, and SpecialPageFactory\getPage().

◆ testGetTitleForAlias()

SpecialPageFactoryTest::testGetTitleForAlias ( )

◆ testHookNotCalledTwice()

SpecialPageFactoryTest::testHookNotCalledTwice ( )

Definition at line 28 of file SpecialPageFactoryTest.php.

References use.

◆ testResolveAlias()

SpecialPageFactoryTest::testResolveAlias ( )

The documentation for this class was generated from the following file: