MediaWiki  master
CssContentTest Class Reference

ContentHandler Database ^— needed, because we do need the database to test link updates. More...

Inheritance diagram for CssContentTest:
Collaboration diagram for CssContentTest:

Public Member Functions

 newContent ( $text)
 
 testEquals (Content $a, Content $b=null, $equal=false)
 dataEquals CssContent::equals More...
 
 testGetContentHandler ()
 CssContent::getContentHandler. More...
 
 testGetModel ()
 CssContent::getModel. More...
 
 testGetRedirectTarget ( $title, $text)
 CssContent::getRedirectTarget provideGetRedirectTarget. More...
 
- Public Member Functions inherited from JavaScriptContentTest
 newContent ( $text)
 
 testAddSectionHeader ()
 JavaScriptContent::addSectionHeader. More...
 
 testGetContentHandler ()
 JavaScriptContent::getContentHandler. More...
 
 testGetModel ()
 JavaScriptContent::getModel. More...
 
 testGetRedirectTarget ( $title, $text)
 JavaScriptContent::getRedirectTarget provideGetRedirectTarget. More...
 
 testMatchMagicWord ()
 JavaScriptContent::matchMagicWord. More...
 
 testUpdateRedirect ( $oldText, $expectedText)
 JavaScriptContent::updateRedirect provideUpdateRedirect. More...
 
- Public Member Functions inherited from TextContentTest
 newContent ( $text)
 
 testConvert ( $text, $model, $lossy, $expectedNative)
 provideConvert TextContent::convert More...
 
 testCopy ()
 TextContent::copy. More...
 
 testDeletionUpdates ( $model, $text, $expectedStuff)
 dataGetDeletionUpdates TextContent::getDeletionUpdates More...
 
 testEquals (Content $a, Content $b=null, $equal=false)
 dataEquals TextContent::equals More...
 
 testGetContentHandler ()
 TextContent::getContentHandler. More...
 
 testGetModel ()
 TextContent::getModel. More...
 
 testGetNativeData ()
 TextContent::getNativeData. More...
 
 testGetParserOutput ( $title, $model, $text, $expectedHtml, $expectedFields=null)
 dataGetParserOutput TextContent::getParserOutput More...
 
 testGetRedirectTarget ( $text, $expected)
 dataGetRedirectTarget TextContent::getRedirectTarget More...
 
 testGetSize ()
 TextContent::getSize. More...
 
 testGetText ()
 TextContent::getText. More...
 
 testGetTextForSearchIndex ()
 TextContent::getTextForSearchIndex. More...
 
 testGetTextForSummary ( $text, $maxlength, $expected)
 dataGetTextForSummary TextContent::getTextForSummary More...
 
 testGetWikitextForTransclusion ()
 TextContent::getWikitextForTransclusion. More...
 
 testIsCountable ( $text, $hasLinks, $mode, $expected)
 dataIsCountable TextContent::isCountable More...
 
 testIsEmpty ( $text, $empty)
 dataIsEmpty TextContent::isEmpty More...
 
 testIsRedirect ( $text, $expected)
 dataGetRedirectTarget TextContent::isRedirect More...
 
 testNormalizeLineEndings ( $input, $expected)
 TextContent::normalizeLineEndings provideNormalizeLineEndings More...
 
 testPreloadTransform ( $text, $expected)
 dataPreloadTransform TextContent::preloadTransform More...
 
 testPreSaveTransform ( $text, $expected)
 dataPreSaveTransform TextContent::preSaveTransform More...
 
 testSerialize ()
 TextContent::__construct TextContentHandler::serializeContent More...
 

Static Public Member Functions

static dataEquals ()
 
static dataGetParserOutput ()
 
static provideGetRedirectTarget ()
 Keep this in sync with CssContentHandlerTest::provideMakeRedirectContent() More...
 
static provideUpdateRedirect ()
 Redirects aren't supported. More...
 
- Static Public Member Functions inherited from JavaScriptContentTest
static dataEquals ()
 
static dataGetParserOutput ()
 
static dataGetRedirectTarget ()
 
static dataGetSection ()
 
static dataGetTextForSummary ()
 
static dataIsCountable ()
 
static dataPreloadTransform ()
 
static dataPreSaveTransform ()
 
static dataReplaceSection ()
 
static provideGetRedirectTarget ()
 Keep this in sync with JavaScriptContentHandlerTest::provideMakeRedirectContent() More...
 
static provideUpdateRedirect ()
 
- Static Public Member Functions inherited from TextContentTest
static dataEquals ()
 
static dataGetDeletionUpdates ()
 
static dataGetParserOutput ()
 
static dataGetRedirectTarget ()
 
static dataGetTextForSummary ()
 
static dataIsCountable ()
 
static dataIsEmpty ()
 
static dataPreloadTransform ()
 
static dataPreSaveTransform ()
 
static provideConvert ()
 
static provideNormalizeLineEndings ()
 

Protected Member Functions

 setUp ()
 
- Protected Member Functions inherited from TextContentTest
 setUp ()
 
 tearDown ()
 
- Protected Member Functions inherited from MediaWikiLangTestCase
 setUp ()
 

Additional Inherited Members

- Protected Attributes inherited from TextContentTest
 $context
 

Detailed Description

ContentHandler Database ^— needed, because we do need the database to test link updates.

this should not extend JavaScriptContentTest.

Definition at line 10 of file CssContentTest.php.

Member Function Documentation

◆ dataEquals()

static CssContentTest::dataEquals ( )
static

Definition at line 121 of file CssContentTest.php.

References false, null, and true.

◆ dataGetParserOutput()

static CssContentTest::dataGetParserOutput ( )
static

Definition at line 31 of file CssContentTest.php.

References null.

◆ newContent()

CssContentTest::newContent (   $text)

Definition at line 27 of file CssContentTest.php.

Referenced by testGetContentHandler(), and testGetModel().

◆ provideGetRedirectTarget()

static CssContentTest::provideGetRedirectTarget ( )
static

Keep this in sync with CssContentHandlerTest::provideMakeRedirectContent()

Definition at line 103 of file CssContentTest.php.

References null.

◆ provideUpdateRedirect()

static CssContentTest::provideUpdateRedirect ( )
static

Redirects aren't supported.

Definition at line 76 of file CssContentTest.php.

◆ setUp()

CssContentTest::setUp ( )
protected

Definition at line 12 of file CssContentTest.php.

References $user, CONTENT_MODEL_CSS, and User.

◆ testEquals()

CssContentTest::testEquals ( Content  $a,
Content  $b = null,
  $equal = false 
)

dataEquals CssContent::equals

Definition at line 134 of file CssContentTest.php.

References Content\equals().

◆ testGetContentHandler()

CssContentTest::testGetContentHandler ( )

◆ testGetModel()

CssContentTest::testGetModel ( )

CssContent::getModel.

Definition at line 58 of file CssContentTest.php.

References $content, CONTENT_MODEL_CSS, and newContent().

◆ testGetRedirectTarget()

CssContentTest::testGetRedirectTarget (   $title,
  $text 
)

CssContent::getRedirectTarget provideGetRedirectTarget.

Definition at line 89 of file CssContentTest.php.

References $content, $title, and null.


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