MediaWiki  master
ApiComparePagesTest Class Reference

API Database medium ApiComparePages. More...

Inheritance diagram for ApiComparePagesTest:
Collaboration diagram for ApiComparePagesTest:

Public Member Functions

 addDBDataOnce ()
 
 testDiff ( $params, $expect, $exceptionCode=false, $sysop=false)
 provideDiff More...
 
- Public Member Functions inherited from ApiTestCase
 testApiTestGroup ()
 

Static Public Member Functions

static provideDiff ()
 
- Static Public Member Functions inherited from ApiTestCase
static apiExceptionHasCode (ApiUsageException $ex, $code)
 

Protected Member Functions

 addPage ( $page, $text, $model=CONTENT_MODEL_WIKITEXT)
 
 doReplacements (&$value)
 
 setUp ()
 
- Protected Member Functions inherited from ApiTestCase
 doApiRequest (array $params, array $session=null, $appendModule=false, User $user=null, $tokenType=null)
 Does the API request and returns the result. More...
 
 doApiRequestWithToken (array $params, array $session=null, User $user=null, $tokenType='auto')
 Convenience function to access the token parameter of doApiRequest() more succinctly. More...
 
 doLogin ( $testUser=null)
 Previously this would do API requests to log in, as well as setting $wgUser and the request context's user. More...
 
 getTokenList (TestUser $user, $session=null)
 
 setExpectedApiException ( $msg, $code=null, array $data=null, $httpCode=0)
 Expect an ApiUsageException to be thrown with the given parameters, which are the same as ApiUsageException::newWithMessage()'s parameters. More...
 
 setUp ()
 
 tearDown ()
 
- Protected Member Functions inherited from MediaWikiLangTestCase
 setUp ()
 

Static Protected Attributes

static $repl = []
 
- Static Protected Attributes inherited from ApiTestCase
static $apiUrl
 
static $errorFormatter = null
 

Static Private Member Functions

static makeDeprecationWarnings (... $params)
 

Additional Inherited Members

- Static Protected Member Functions inherited from ApiTestCase
static getErrorFormatter ()
 
- Protected Attributes inherited from ApiTestCase
ApiTestContext $apiContext
 

Detailed Description

API Database medium ApiComparePages.

Definition at line 9 of file ApiComparePagesTest.php.

Member Function Documentation

◆ addDBDataOnce()

◆ addPage()

ApiComparePagesTest::addPage (   $page,
  $text,
  $model = CONTENT_MODEL_WIKITEXT 
)
protected

◆ doReplacements()

ApiComparePagesTest::doReplacements ( $value)
protected

Definition at line 113 of file ApiComparePagesTest.php.

References $value, and as.

Referenced by testDiff().

◆ makeDeprecationWarnings()

static ApiComparePagesTest::makeDeprecationWarnings (   $params)
staticprivate

Definition at line 160 of file ApiComparePagesTest.php.

References $params, and as.

◆ provideDiff()

static ApiComparePagesTest::provideDiff ( )
static

Definition at line 179 of file ApiComparePagesTest.php.

References CONTENT_MODEL_TEXT, and true.

◆ setUp()

ApiComparePagesTest::setUp ( )
protected

Definition at line 13 of file ApiComparePagesTest.php.

◆ testDiff()

ApiComparePagesTest::testDiff (   $params,
  $expect,
  $exceptionCode = false,
  $sysop = false 
)

Member Data Documentation

◆ $repl

ApiComparePagesTest::$repl = []
staticprotected

Definition at line 11 of file ApiComparePagesTest.php.


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