MediaWiki  master
ApiQueryRecentChangesIntegrationTest Class Reference

API Database medium. More...

Inheritance diagram for ApiQueryRecentChangesIntegrationTest:
Collaboration diagram for ApiQueryRecentChangesIntegrationTest:

Public Member Functions

 __construct ( $name=null, array $data=[], $dataName='')
 
 testAllRevParam ()
 
 testCategorizeTypeParameter ()
 
 testCommentPropParameter ()
 
 testContinueParam ()
 
 testDirParams ()
 
 testEmptyPropParameter ()
 
 testExternalTypeParameters ()
 
 testFlagsPropParameter ()
 
 testGeneratorRecentChangesPropInfo_returnsRCPages ()
 
 testIdsPropParameter ()
 
 testLimitParam ()
 
 testListRecentChanges_returnsRCInfo ()
 
 testLoginfoPropParameter ()
 
 testLogTypeParameters ()
 
 testNamespaceParam ()
 
 testNewAndEditTypeParameters ()
 
 testParsedCommentPropParameter ()
 
 testShowAnonParams ()
 
 testSizesPropParameter ()
 
 testStartEndParams ()
 
 testTimestampPropParameter ()
 
 testTitleParams ()
 
 testTitlePropParameter ()
 
 testUserIdPropParameter ()
 
 testUserPropParameter ()
 
- Public Member Functions inherited from ApiTestCase
 testApiTestGroup ()
 

Protected Member Functions

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

Private Member Functions

 createPageAndDeleteIt (LinkTarget $target)
 
 deletePage (LinkTarget $target, $reason)
 
 doAnonPageEdit (LinkTarget $target, $summary)
 
 doBotPageEdit (User $user, LinkTarget $target, $summary)
 
 doGeneratorRecentChangesRequest (array $params=[])
 
 doListRecentChangesRequest (array $params=[])
 
 doMinorPageEdit (User $user, LinkTarget $target, $summary)
 
 doPageEdit (User $user, LinkTarget $target, $summary)
 
 doPageEdits (User $user, array $editData)
 Performs a batch of page edits as a specified user. More...
 
 getExternalRC (LinkTarget $target)
 
 getItemsFromApiResponse (array $response)
 
 getLoggedInTestUser ()
 
 getPrefixedText (LinkTarget $target)
 

Additional Inherited Members

- Static Public Member Functions inherited from ApiTestCase
static apiExceptionHasCode (ApiUsageException $ex, $code)
 
- 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 Database medium.

ApiQueryRecentChanges

Definition at line 13 of file ApiQueryRecentChangesIntegrationTest.php.

Constructor & Destructor Documentation

◆ __construct()

ApiQueryRecentChangesIntegrationTest::__construct (   $name = null,
array  $data = [],
  $dataName = '' 
)

Definition at line 15 of file ApiQueryRecentChangesIntegrationTest.php.

References $name.

Member Function Documentation

◆ createPageAndDeleteIt()

ApiQueryRecentChangesIntegrationTest::createPageAndDeleteIt ( LinkTarget  $target)
private

◆ deletePage()

ApiQueryRecentChangesIntegrationTest::deletePage ( LinkTarget  $target,
  $reason 
)
private

◆ doAnonPageEdit()

ApiQueryRecentChangesIntegrationTest::doAnonPageEdit ( LinkTarget  $target,
  $summary 
)
private

◆ doBotPageEdit()

ApiQueryRecentChangesIntegrationTest::doBotPageEdit ( User  $user,
LinkTarget  $target,
  $summary 
)
private

◆ doGeneratorRecentChangesRequest()

ApiQueryRecentChangesIntegrationTest::doGeneratorRecentChangesRequest ( array  $params = [])
private

◆ doListRecentChangesRequest()

◆ doMinorPageEdit()

ApiQueryRecentChangesIntegrationTest::doMinorPageEdit ( User  $user,
LinkTarget  $target,
  $summary 
)
private

◆ doPageEdit()

◆ doPageEdits()

ApiQueryRecentChangesIntegrationTest::doPageEdits ( User  $user,
array  $editData 
)
private

Performs a batch of page edits as a specified user.

Parameters
User$user
array$editDataassociative array, keys:
  • target => LinkTarget page to edit
  • summary => string edit summary
  • minorEdit => bool mark as minor edit if true (defaults to false)
  • botEdit => bool mark as bot edit if true (defaults to false)

Definition at line 98 of file ApiQueryRecentChangesIntegrationTest.php.

References as, doBotPageEdit(), doMinorPageEdit(), and doPageEdit().

Referenced by testAllRevParam(), testCategorizeTypeParameter(), testContinueParam(), testDirParams(), testFlagsPropParameter(), testLimitParam(), testNamespaceParam(), testNewAndEditTypeParameters(), testTitleParams(), and testTitlePropParameter().

◆ getExternalRC()

ApiQueryRecentChangesIntegrationTest::getExternalRC ( LinkTarget  $target)
private

◆ getItemsFromApiResponse()

◆ getLoggedInTestUser()

◆ getPrefixedText()

◆ setUp()

ApiQueryRecentChangesIntegrationTest::setUp ( )
protected

Definition at line 22 of file ApiQueryRecentChangesIntegrationTest.php.

References DB_MASTER, and wfGetDB().

◆ testAllRevParam()

ApiQueryRecentChangesIntegrationTest::testAllRevParam ( )

◆ testCategorizeTypeParameter()

◆ testCommentPropParameter()

ApiQueryRecentChangesIntegrationTest::testCommentPropParameter ( )

◆ testContinueParam()

ApiQueryRecentChangesIntegrationTest::testContinueParam ( )

◆ testDirParams()

ApiQueryRecentChangesIntegrationTest::testDirParams ( )

◆ testEmptyPropParameter()

ApiQueryRecentChangesIntegrationTest::testEmptyPropParameter ( )

◆ testExternalTypeParameters()

ApiQueryRecentChangesIntegrationTest::testExternalTypeParameters ( )

◆ testFlagsPropParameter()

ApiQueryRecentChangesIntegrationTest::testFlagsPropParameter ( )

◆ testGeneratorRecentChangesPropInfo_returnsRCPages()

ApiQueryRecentChangesIntegrationTest::testGeneratorRecentChangesPropInfo_returnsRCPages ( )

◆ testIdsPropParameter()

ApiQueryRecentChangesIntegrationTest::testIdsPropParameter ( )

◆ testLimitParam()

ApiQueryRecentChangesIntegrationTest::testLimitParam ( )

◆ testListRecentChanges_returnsRCInfo()

ApiQueryRecentChangesIntegrationTest::testListRecentChanges_returnsRCInfo ( )

◆ testLoginfoPropParameter()

ApiQueryRecentChangesIntegrationTest::testLoginfoPropParameter ( )

◆ testLogTypeParameters()

ApiQueryRecentChangesIntegrationTest::testLogTypeParameters ( )

◆ testNamespaceParam()

ApiQueryRecentChangesIntegrationTest::testNamespaceParam ( )

◆ testNewAndEditTypeParameters()

ApiQueryRecentChangesIntegrationTest::testNewAndEditTypeParameters ( )

◆ testParsedCommentPropParameter()

ApiQueryRecentChangesIntegrationTest::testParsedCommentPropParameter ( )

◆ testShowAnonParams()

◆ testSizesPropParameter()

ApiQueryRecentChangesIntegrationTest::testSizesPropParameter ( )

◆ testStartEndParams()

ApiQueryRecentChangesIntegrationTest::testStartEndParams ( )

◆ testTimestampPropParameter()

ApiQueryRecentChangesIntegrationTest::testTimestampPropParameter ( )

◆ testTitleParams()

ApiQueryRecentChangesIntegrationTest::testTitleParams ( )

◆ testTitlePropParameter()

ApiQueryRecentChangesIntegrationTest::testTitlePropParameter ( )

◆ testUserIdPropParameter()

ApiQueryRecentChangesIntegrationTest::testUserIdPropParameter ( )

◆ testUserPropParameter()

ApiQueryRecentChangesIntegrationTest::testUserPropParameter ( )

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