MediaWiki  master
ApiQueryWatchlistRawIntegrationTest Class Reference

API Database medium. More...

Inheritance diagram for ApiQueryWatchlistRawIntegrationTest:
Collaboration diagram for ApiQueryWatchlistRawIntegrationTest:

Public Member Functions

 fromTitleToTitleContinueComboProvider ()
 
 fromTitleToTitleContinueSelfContradictoryComboProvider ()
 
 testAscendingIsDefaultOrder ()
 
 testContinueParam ()
 
 testDirParams ()
 
 testFromTitleParam ()
 
 testFromTitleToTitleContinueCombo (array $params, array $expectedItems)
 fromTitleToTitleContinueComboProvider More...
 
 testFromTitleToTitleContinueSelfContradictoryCombo (array $params)
 fromTitleToTitleContinueSelfContradictoryComboProvider More...
 
 testGeneratorWatchlistRawPropInfo_returnsWatchedItems ()
 
 testLimitParam ()
 
 testListWatchlistRaw_returnsWatchedItems ()
 
 testNamespaceParam ()
 
 testOwnerAndTokenParams ()
 
 testOwnerAndTokenParams_userHasNoWatchlistToken ()
 
 testOwnerAndTokenParams_wrongToken ()
 
 testPropChanged_addsNotificationTimestamp ()
 
 testShowChangedParams ()
 
 testToTitleParam ()
 
- 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

 doGeneratorWatchlistRawRequest (array $params=[])
 
 doListWatchlistRawRequest (array $params=[])
 
 getItemsFromApiResponse (array $response)
 
 getLoggedInTestUser ()
 
 getNotLoggedInTestUser ()
 
 getWatchedItemStore ()
 

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.

ApiQueryWatchlistRaw

Definition at line 12 of file ApiQueryWatchlistRawIntegrationTest.php.

Member Function Documentation

◆ doGeneratorWatchlistRawRequest()

ApiQueryWatchlistRawIntegrationTest::doGeneratorWatchlistRawRequest ( array  $params = [])
private

◆ doListWatchlistRawRequest()

◆ fromTitleToTitleContinueComboProvider()

ApiQueryWatchlistRawIntegrationTest::fromTitleToTitleContinueComboProvider ( )

Definition at line 366 of file ApiQueryWatchlistRawIntegrationTest.php.

◆ fromTitleToTitleContinueSelfContradictoryComboProvider()

ApiQueryWatchlistRawIntegrationTest::fromTitleToTitleContinueSelfContradictoryComboProvider ( )

Definition at line 427 of file ApiQueryWatchlistRawIntegrationTest.php.

◆ getItemsFromApiResponse()

◆ getLoggedInTestUser()

◆ getNotLoggedInTestUser()

◆ getWatchedItemStore()

◆ setUp()

ApiQueryWatchlistRawIntegrationTest::setUp ( )
protected

Definition at line 14 of file ApiQueryWatchlistRawIntegrationTest.php.

◆ testAscendingIsDefaultOrder()

ApiQueryWatchlistRawIntegrationTest::testAscendingIsDefaultOrder ( )

◆ testContinueParam()

ApiQueryWatchlistRawIntegrationTest::testContinueParam ( )

◆ testDirParams()

ApiQueryWatchlistRawIntegrationTest::testDirParams ( )

◆ testFromTitleParam()

ApiQueryWatchlistRawIntegrationTest::testFromTitleParam ( )

◆ testFromTitleToTitleContinueCombo()

ApiQueryWatchlistRawIntegrationTest::testFromTitleToTitleContinueCombo ( array  $params,
array  $expectedItems 
)

fromTitleToTitleContinueComboProvider

Definition at line 413 of file ApiQueryWatchlistRawIntegrationTest.php.

References doListWatchlistRawRequest(), getItemsFromApiResponse(), getLoggedInTestUser(), and getWatchedItemStore().

◆ testFromTitleToTitleContinueSelfContradictoryCombo()

ApiQueryWatchlistRawIntegrationTest::testFromTitleToTitleContinueSelfContradictoryCombo ( array  $params)

fromTitleToTitleContinueSelfContradictoryComboProvider

Definition at line 454 of file ApiQueryWatchlistRawIntegrationTest.php.

References doListWatchlistRawRequest(), getItemsFromApiResponse(), getLoggedInTestUser(), and getWatchedItemStore().

◆ testGeneratorWatchlistRawPropInfo_returnsWatchedItems()

ApiQueryWatchlistRawIntegrationTest::testGeneratorWatchlistRawPropInfo_returnsWatchedItems ( )

◆ testLimitParam()

ApiQueryWatchlistRawIntegrationTest::testLimitParam ( )

◆ testListWatchlistRaw_returnsWatchedItems()

ApiQueryWatchlistRawIntegrationTest::testListWatchlistRaw_returnsWatchedItems ( )

◆ testNamespaceParam()

ApiQueryWatchlistRawIntegrationTest::testNamespaceParam ( )

◆ testOwnerAndTokenParams()

ApiQueryWatchlistRawIntegrationTest::testOwnerAndTokenParams ( )

◆ testOwnerAndTokenParams_userHasNoWatchlistToken()

ApiQueryWatchlistRawIntegrationTest::testOwnerAndTokenParams_userHasNoWatchlistToken ( )

◆ testOwnerAndTokenParams_wrongToken()

ApiQueryWatchlistRawIntegrationTest::testOwnerAndTokenParams_wrongToken ( )

◆ testPropChanged_addsNotificationTimestamp()

ApiQueryWatchlistRawIntegrationTest::testPropChanged_addsNotificationTimestamp ( )

◆ testShowChangedParams()

◆ testToTitleParam()

ApiQueryWatchlistRawIntegrationTest::testToTitleParam ( )

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