|
MediaWiki
REL1_21
|


Public Member Functions | |
| 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. | |
Protected Member Functions | |
| setUp () | |
| setUp and tearDown should (where significant) happen in reverse order. | |
| tearDown () | |
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. | |
Definition at line 6 of file SideBarTest.php.
| SideBarTest::assertSideBar | ( | $ | expected, |
| $ | text, | ||
| $ | message = '' |
||
| ) | [private] |
Internal helper to test the sidebar.
| $expected | |
| $text | |
| $message | (Default: '') |
Definition at line 50 of file SideBarTest.php.
References Skin\addToSidebarPlain(), array(), and skin().
Referenced by testSidebarWithOnlyTwoTitles().
| SideBarTest::getAttribs | ( | ) | [private] |
Definition at line 141 of file SideBarTest.php.
Referenced by testRespectExternallinktarget(), testRespectWgnofollowlinks(), and testTestAttributesAssertionHelper().
| SideBarTest::initMessagesHref | ( | ) | [private] |
Build $this->messages array.
Definition at line 14 of file SideBarTest.php.
References $title, array(), as, messages, Title\newFromText(), and MessageCache\singleton().
Referenced by setUp().
| SideBarTest::setUp | ( | ) | [protected] |
setUp and tearDown should (where significant) happen in reverse order.
Reimplemented from MediaWikiLangTestCase.
Definition at line 32 of file SideBarTest.php.
References Language\factory(), ContextSource\getContext(), initMessagesHref(), and skin().
| SideBarTest::tearDown | ( | ) | [protected] |
Reimplemented from MediaWikiTestCase.
Definition at line 39 of file SideBarTest.php.
References skin().
Definition at line 68 of file SideBarTest.php.
Test $wgExternaLinkTarget in sidebar.
Definition at line 187 of file SideBarTest.php.
References $attribs, getAttribs(), and global.
Test $wgNoFollowLinks in sidebar.
Definition at line 170 of file SideBarTest.php.
References $attribs, getAttribs(), and global.
Definition at line 56 of file SideBarTest.php.
References array(), and assertSideBar().
Simple test to verify our helper assertAttribs() is functional Please note this assume MediaWiki default settings: $wgNoFollowLinks = true $wgExternalLinkTarget = false.
Definition at line 158 of file SideBarTest.php.
References $attribs, and getAttribs().
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.