MediaWiki  master
JsonContentTest Class Reference
Inheritance diagram for JsonContentTest:
Collaboration diagram for JsonContentTest:

Public Member Functions

 testBeautifyJson ( $input, $beautified)
 provideDataToEncode More...
 
 testFillParserOutput ( $data, $expected)
 provideDataAndParserText More...
 
 testIsValid ( $text, $isValid, $expected)
 provideValidConstruction More...
 
 testPreSaveTransform ( $input, $transformed)
 provideDataToEncode More...
 

Static Public Member Functions

static provideDataAndParserText ()
 
static provideDataToEncode ()
 
static provideValidConstruction ()
 

Private Member Functions

 getMockParserOptions ()
 
 getMockTitle ()
 
 getMockUser ()
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWikiLangTestCase
 setUp ()
 

Detailed Description

Author
Addshore JsonContent

Definition at line 7 of file JsonContentTest.php.

Member Function Documentation

◆ getMockParserOptions()

JsonContentTest::getMockParserOptions ( )
private

Definition at line 96 of file JsonContentTest.php.

References class.

Referenced by testPreSaveTransform().

◆ getMockTitle()

JsonContentTest::getMockTitle ( )
private

Definition at line 84 of file JsonContentTest.php.

References class.

Referenced by testFillParserOutput(), and testPreSaveTransform().

◆ getMockUser()

JsonContentTest::getMockUser ( )
private

Definition at line 90 of file JsonContentTest.php.

References class.

Referenced by testPreSaveTransform().

◆ provideDataAndParserText()

static JsonContentTest::provideDataAndParserText ( )
static

Definition at line 102 of file JsonContentTest.php.

References object.

◆ provideDataToEncode()

static JsonContentTest::provideDataToEncode ( )
static

Definition at line 31 of file JsonContentTest.php.

◆ provideValidConstruction()

static JsonContentTest::provideValidConstruction ( )
static

Definition at line 9 of file JsonContentTest.php.

References null, and object.

◆ testBeautifyJson()

JsonContentTest::testBeautifyJson (   $input,
  $beautified 
)

provideDataToEncode

Definition at line 66 of file JsonContentTest.php.

References $input.

◆ testFillParserOutput()

JsonContentTest::testFillParserOutput (   $data,
  $expected 
)

provideDataAndParserText

Definition at line 147 of file JsonContentTest.php.

References class, FormatJson\encode(), getMockTitle(), and null.

◆ testIsValid()

JsonContentTest::testIsValid (   $text,
  $isValid,
  $expected 
)

provideValidConstruction

Definition at line 25 of file JsonContentTest.php.

References CONTENT_MODEL_JSON.

◆ testPreSaveTransform()

JsonContentTest::testPreSaveTransform (   $input,
  $transformed 
)

provideDataToEncode

Definition at line 74 of file JsonContentTest.php.

References $input, getMockParserOptions(), getMockTitle(), and getMockUser().


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