MediaWiki
1.34.0
|
@covers ApiQueryPageImages More...
Public Member Functions | |
provideExecute () | |
provideGetPropName () | |
provideGetTitles () | |
testConstructor () | |
testExecute ( $requestParams, $titles, $queryPageIds, $queryResults, $setResultValueCount) | |
@dataProvider provideExecute More... | |
testGetAllowedParams () | |
testGetCacheMode () | |
testGetPropName ( $license, $expected) | |
@dataProvider provideGetPropName More... | |
testGetTitles ( $titles, $missingTitlesByNamespace, $expected) | |
@dataProvider provideGetTitles More... | |
Private Member Functions | |
allResultsHaveProperty ( $queryResults, $propName) | |
hasExpectedProperties ( $queryResults, $originalRequested) | |
newInstance () | |
noResultsHaveProperty ( $queryResults, $propName) | |
@covers ApiQueryPageImages
@group PageImages
Definition at line 22 of file ApiQueryPageImagesTest.php.
|
private |
Definition at line 321 of file ApiQueryPageImagesTest.php.
Referenced by PageImages\Tests\ApiQueryPageImagesTest\hasExpectedProperties().
|
private |
Definition at line 300 of file ApiQueryPageImagesTest.php.
References PageImages\Tests\ApiQueryPageImagesTest\allResultsHaveProperty(), and PageImages\Tests\ApiQueryPageImagesTest\noResultsHaveProperty().
Referenced by PageImages\Tests\ApiQueryPageImagesTest\testExecute().
|
private |
Definition at line 24 of file ApiQueryPageImagesTest.php.
References $context.
Referenced by PageImages\Tests\ApiQueryPageImagesTest\testConstructor(), PageImages\Tests\ApiQueryPageImagesTest\testGetAllowedParams(), and PageImages\Tests\ApiQueryPageImagesTest\testGetCacheMode().
|
private |
Definition at line 312 of file ApiQueryPageImagesTest.php.
Referenced by PageImages\Tests\ApiQueryPageImagesTest\hasExpectedProperties().
PageImages\Tests\ApiQueryPageImagesTest::provideExecute | ( | ) |
Definition at line 186 of file ApiQueryPageImagesTest.php.
References Title\newFromText(), PageImages\PROP_NAME, and PageImages\PROP_NAME_FREE.
PageImages\Tests\ApiQueryPageImagesTest::provideGetPropName | ( | ) |
Definition at line 293 of file ApiQueryPageImagesTest.php.
References PageImages\PROP_NAME, and PageImages\PROP_NAME_FREE.
PageImages\Tests\ApiQueryPageImagesTest::provideGetTitles | ( | ) |
Definition at line 100 of file ApiQueryPageImagesTest.php.
References Title\newFromText(), NS_FILE, and NS_TALK.
PageImages\Tests\ApiQueryPageImagesTest::testConstructor | ( | ) |
Definition at line 54 of file ApiQueryPageImagesTest.php.
References PageImages\Tests\ApiQueryPageImagesTest\newInstance().
PageImages\Tests\ApiQueryPageImagesTest::testExecute | ( | $requestParams, | |
$titles, | |||
$queryPageIds, | |||
$queryResults, | |||
$setResultValueCount | |||
) |
@dataProvider provideExecute
array | $requestParams | Request parameters to the API |
array | $titles | Page titles passed to the API |
array | $queryPageIds | Page IDs that will be used for querying the DB. |
array | $queryResults | Results of the DB select query |
int | $setResultValueCount | The number results the API returned |
Definition at line 139 of file ApiQueryPageImagesTest.php.
References PageImages\getPropName(), PageImages\Tests\ApiQueryPageImagesTest\hasExpectedProperties(), and ApiQueryPageImages\PARAM_LICENSE_ANY.
PageImages\Tests\ApiQueryPageImagesTest::testGetAllowedParams | ( | ) |
Definition at line 64 of file ApiQueryPageImagesTest.php.
References PageImages\Tests\ApiQueryPageImagesTest\newInstance(), ApiBase\PARAM_DFLT, ApiBase\PARAM_ISMULTI, ApiBase\PARAM_MAX, ApiBase\PARAM_MAX2, ApiBase\PARAM_MIN, and ApiBase\PARAM_TYPE.
PageImages\Tests\ApiQueryPageImagesTest::testGetCacheMode | ( | ) |
Definition at line 59 of file ApiQueryPageImagesTest.php.
References PageImages\Tests\ApiQueryPageImagesTest\newInstance().
PageImages\Tests\ApiQueryPageImagesTest::testGetPropName | ( | $license, | |
$expected | |||
) |
@dataProvider provideGetPropName
string | $license | |
string | $expected |
Definition at line 289 of file ApiQueryPageImagesTest.php.
References PageImages\Tests\ApiQueryPageImagesProxyMock\getPropNames().
PageImages\Tests\ApiQueryPageImagesTest::testGetTitles | ( | $titles, | |
$missingTitlesByNamespace, | |||
$expected | |||
) |
@dataProvider provideGetTitles
Definition at line 85 of file ApiQueryPageImagesTest.php.