MediaWiki  REL1_22
TitleMethodsTest Class Reference

ContentHandler Database More...

Inheritance diagram for TitleMethodsTest:
Collaboration diagram for TitleMethodsTest:

List of all members.

Public Member Functions

 dataGetContentModel ()
 setUp ()
 setUp and tearDown should (where significant) happen in reverse order.
 tearDown ()
 testEquals ($titleA, $titleB, $expectedBool)
 provideEquals Title::equals
 testGetContentModel ($title, $expectedModelId)
 dataGetContentModel Title::getContentModel
 testHasContentModel ($title, $expectedModelId)
 dataGetContentModel Title::hasContentModel
 testHasSubjectNamespace ($title, $ns, $expectedBool)
 provideHasSubjectNamespace Title::hasSubjectNamespace
 testInNamespace ($title, $ns, $expectedBool)
 provideInNamespace Title::inNamespace
 testInNamespaces ()
 Title::inNamespaces
 testIsCssJsSubpage ($title, $expectedBool)
 provideIsCssJsSubpage Title::isCssJsSubpage
 testIsCssOrJsPage ($title, $expectedBool)
 provideIsCssOrJsPage Title::isCssOrJsPage
 testIsCssSubpage ($title, $expectedBool)
 provideIsCssSubpage Title::isCssSubpage
 testIsJsSubpage ($title, $expectedBool)
 provideIsJsSubpage Title::isJsSubpage
 testIsWikitextPage ($title, $expectedBool)
 provideIsWikitextPage Title::isWikitextPage

Static Public Member Functions

static provideEquals ()
static provideHasSubjectNamespace ()
static provideInNamespace ()
static provideIsCssJsSubpage ()
static provideIsCssOrJsPage ()
static provideIsCssSubpage ()
static provideIsJsSubpage ()
static provideIsWikitextPage ()

Detailed Description

ContentHandler Database

Note:
: We don't make assumptions about the main namespace. But we do expect the Help namespace to contain Wikitext.

Definition at line 10 of file TitleMethodsTest.php.


Member Function Documentation

Definition at line 124 of file TitleMethodsTest.php.

References array().

static TitleMethodsTest::provideEquals ( ) [static]

Definition at line 45 of file TitleMethodsTest.php.

References array().

Definition at line 102 of file TitleMethodsTest.php.

References array().

Definition at line 69 of file TitleMethodsTest.php.

References array().

Definition at line 198 of file TitleMethodsTest.php.

References array().

Definition at line 167 of file TitleMethodsTest.php.

References array().

Definition at line 227 of file TitleMethodsTest.php.

References array().

Definition at line 248 of file TitleMethodsTest.php.

References array().

Definition at line 269 of file TitleMethodsTest.php.

References array().

setUp and tearDown should (where significant) happen in reverse order.

Reimplemented from MediaWikiTestCase.

Definition at line 12 of file TitleMethodsTest.php.

References $wgContLang, array(), cache, MWNamespace\getCanonicalNamespaces(), global, and MediaWikiTestCase\mergeMwGlobalArrayValue().

TitleMethodsTest::testEquals ( titleA,
titleB,
expectedBool 
)

provideEquals Title::equals

Definition at line 61 of file TitleMethodsTest.php.

References Title\newFromText().

TitleMethodsTest::testGetContentModel ( title,
expectedModelId 
)

dataGetContentModel Title::getContentModel

Definition at line 153 of file TitleMethodsTest.php.

References $title, and Title\newFromText().

TitleMethodsTest::testHasContentModel ( title,
expectedModelId 
)

dataGetContentModel Title::hasContentModel

Definition at line 162 of file TitleMethodsTest.php.

References $title, and Title\newFromText().

TitleMethodsTest::testHasSubjectNamespace ( title,
ns,
expectedBool 
)

provideHasSubjectNamespace Title::hasSubjectNamespace

Definition at line 119 of file TitleMethodsTest.php.

References $title, and Title\newFromText().

TitleMethodsTest::testInNamespace ( title,
ns,
expectedBool 
)

provideInNamespace Title::inNamespace

Definition at line 86 of file TitleMethodsTest.php.

References $title, and Title\newFromText().

TitleMethodsTest::testIsCssJsSubpage ( title,
expectedBool 
)

provideIsCssJsSubpage Title::isCssJsSubpage

Definition at line 222 of file TitleMethodsTest.php.

References $title, and Title\newFromText().

TitleMethodsTest::testIsCssOrJsPage ( title,
expectedBool 
)

provideIsCssOrJsPage Title::isCssOrJsPage

Definition at line 193 of file TitleMethodsTest.php.

References $title, and Title\newFromText().

TitleMethodsTest::testIsCssSubpage ( title,
expectedBool 
)

provideIsCssSubpage Title::isCssSubpage

Definition at line 243 of file TitleMethodsTest.php.

References $title, and Title\newFromText().

TitleMethodsTest::testIsJsSubpage ( title,
expectedBool 
)

provideIsJsSubpage Title::isJsSubpage

Definition at line 264 of file TitleMethodsTest.php.

References $title, and Title\newFromText().

TitleMethodsTest::testIsWikitextPage ( title,
expectedBool 
)

provideIsWikitextPage Title::isWikitextPage

Definition at line 296 of file TitleMethodsTest.php.

References $title, and Title\newFromText().


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