MediaWiki  master
TextSlotDiffRendererTest Class Reference

TextSlotDiffRenderer. More...

Inheritance diagram for TextSlotDiffRendererTest:
Collaboration diagram for TextSlotDiffRendererTest:

Public Member Functions

 provideGetDiff ()
 
 testGetDiff (Content $oldContent=null, Content $newContent=null, $expectedResult)
 provideGetDiff More...
 

Private Member Functions

 getPlainDiff ( $diff)
 Convert a HTML diff to a human-readable format and hopefully make the test less fragile. More...
 
 getTextSlotDiffRenderer ()
 
 makeContent ( $str, $model=CONTENT_MODEL_TEXT)
 

Detailed Description

Member Function Documentation

◆ getPlainDiff()

TextSlotDiffRendererTest::getPlainDiff (   $diff)
private

Convert a HTML diff to a human-readable format and hopefully make the test less fragile.

Parameters
stringdiff
Returns
string

Definition at line 96 of file TextSlotDiffRendererTest.php.

Referenced by testGetDiff().

◆ getTextSlotDiffRenderer()

TextSlotDiffRendererTest::getTextSlotDiffRenderer ( )
private

◆ makeContent()

TextSlotDiffRendererTest::makeContent (   $str,
  $model = CONTENT_MODEL_TEXT 
)
private
Parameters
string$str
string$model
Returns
null|TextContent

Definition at line 110 of file TextSlotDiffRendererTest.php.

References ContentHandler\makeContent(), and null.

Referenced by provideGetDiff().

◆ provideGetDiff()

TextSlotDiffRendererTest::provideGetDiff ( )

Definition at line 33 of file TextSlotDiffRendererTest.php.

References class, makeContent(), and null.

◆ testGetDiff()

TextSlotDiffRendererTest::testGetDiff ( Content  $oldContent = null,
Content  $newContent = null,
  $expectedResult 
)

provideGetDiff

Parameters
Content | null$oldContent
Content | null$newContent
string | Exception$expectedResult
Exceptions
Exception

Definition at line 17 of file TextSlotDiffRendererTest.php.

References getPlainDiff(), and getTextSlotDiffRenderer().


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