MediaWiki  master
ApiPageSetTest Class Reference

API medium Database ApiPageSet. More...

Inheritance diagram for ApiPageSetTest:
Collaboration diagram for ApiPageSetTest:

Public Member Functions

 testHandleNormalization ()
 
 testRedirectMergePolicyWithApiResult ( $mergePolicy, $expect)
 provideRedirectMergePolicy More...
 
 testRedirectMergePolicyWithArrayResult ( $mergePolicy, $expect)
 provideRedirectMergePolicy More...
 
 testSpecialRedirects ()
 
- Public Member Functions inherited from ApiTestCase
 testApiTestGroup ()
 

Static Public Member Functions

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

Protected Member Functions

 createPageSetWithRedirect ()
 
- 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 ()
 

Additional Inherited Members

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

Detailed Description

API medium Database ApiPageSet.

Definition at line 9 of file ApiPageSetTest.php.

Member Function Documentation

◆ createPageSetWithRedirect()

ApiPageSetTest::createPageSetWithRedirect ( )
protected

◆ provideRedirectMergePolicy()

static ApiPageSetTest::provideRedirectMergePolicy ( )
static

Definition at line 10 of file ApiPageSetTest.php.

References null.

◆ testHandleNormalization()

ApiPageSetTest::testHandleNormalization ( )

Definition at line 80 of file ApiPageSetTest.php.

References $context.

◆ testRedirectMergePolicyWithApiResult()

ApiPageSetTest::testRedirectMergePolicyWithApiResult (   $mergePolicy,
  $expect 
)

provideRedirectMergePolicy

Definition at line 45 of file ApiPageSetTest.php.

References createPageSetWithRedirect(), list, and null.

◆ testRedirectMergePolicyWithArrayResult()

ApiPageSetTest::testRedirectMergePolicyWithArrayResult (   $mergePolicy,
  $expect 
)

provideRedirectMergePolicy

Definition at line 32 of file ApiPageSetTest.php.

References createPageSetWithRedirect(), and list.

◆ testSpecialRedirects()

ApiPageSetTest::testSpecialRedirects ( )

Definition at line 101 of file ApiPageSetTest.php.

References $context, $request, and $user.


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