MediaWiki  REL1_19
SideBarTest Class Reference

Skin More...

Inheritance diagram for SideBarTest:
Collaboration diagram for SideBarTest:

List of all members.

Public Member Functions

 __construct ()
 setUp ()
 tearDown ()
 testExpandMessages ()
 testExternalUrlsRequireADescription ()
 testRespectExternallinktarget ()
 Test $wgExternaLinkTarget in sidebar.
 testRespectWgnofollowlinks ()
 Test $wgNoFollowLinks in sidebar.
 testSidebarWithOnlyTwoTitles ()
 testTestAttributesAssertionHelper ()
 Simple test to verify our helper assertAttribs() is functional Please note this assume MediaWiki default settings: $wgNoFollowLinks = true $wgExternalLinkTarget = false.
 testTrickyPipe ()
 bug 33321 - Make sure there's a | after transforming.

Private Member Functions

 assertSideBar ($expected, $text, $message= '')
 Internal helper to test the sidebar.
 getAttribs ()
 initMessagesHref ()
 Build $this->messages array.

Private Attributes

 $messages
 Local cache for sidebar messages.
 $skin
 A skin template, reinitialized before each test.

Detailed Description

Skin

Definition at line 6 of file SideBarTest.php.


Constructor & Destructor Documentation

Definition at line 13 of file SideBarTest.php.


Member Function Documentation

SideBarTest::assertSideBar ( expected,
text,
message = '' 
) [private]

Internal helper to test the sidebar.

Parameters:
$expected
$text
$message(Default: '')

Definition at line 53 of file SideBarTest.php.

Referenced by testSidebarWithOnlyTwoTitles().

Here is the caller graph for this function:

SideBarTest::getAttribs ( ) [private]

Definition at line 145 of file SideBarTest.php.

Referenced by testRespectExternallinktarget(), testRespectWgnofollowlinks(), and testTestAttributesAssertionHelper().

Here is the caller graph for this function:

Build $this->messages array.

Definition at line 18 of file SideBarTest.php.

References $title, Title\newFromText(), and MessageCache\singleton().

Referenced by setUp().

Here is the call graph for this function:

Here is the caller graph for this function:

Reimplemented from MediaWikiLangTestCase.

Definition at line 36 of file SideBarTest.php.

References Language\factory(), and initMessagesHref().

Here is the call graph for this function:

Reimplemented from MediaWikiLangTestCase.

Definition at line 42 of file SideBarTest.php.

Definition at line 71 of file SideBarTest.php.

Test $wgExternaLinkTarget in sidebar.

Definition at line 191 of file SideBarTest.php.

References $wgExternalLinkTarget, and getAttribs().

Here is the call graph for this function:

Test $wgNoFollowLinks in sidebar.

Definition at line 174 of file SideBarTest.php.

References $wgNoFollowLinks, and getAttribs().

Here is the call graph for this function:

Definition at line 59 of file SideBarTest.php.

References assertSideBar().

Here is the call graph for this function:

Simple test to verify our helper assertAttribs() is functional Please note this assume MediaWiki default settings: $wgNoFollowLinks = true $wgExternalLinkTarget = false.

Definition at line 162 of file SideBarTest.php.

References getAttribs().

Here is the call graph for this function:

bug 33321 - Make sure there's a | after transforming.

Database

Definition at line 113 of file SideBarTest.php.

References n.


Member Data Documentation

SideBarTest::$messages [private]

Local cache for sidebar messages.

Definition at line 11 of file SideBarTest.php.

SideBarTest::$skin [private]

A skin template, reinitialized before each test.

Definition at line 9 of file SideBarTest.php.


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