MediaWiki REL1_34
|
@covers ApiQueryPageImages More...
Public Member Functions | |
provideExecute () | |
provideGetPropName () | |
provideGetTitles () | |
testConstructor () | |
testExecute ( $requestParams, $titles, $queryPageIds, $queryResults, $setResultValueCount) | |
@dataProvider provideExecute | |
testGetAllowedParams () | |
testGetCacheMode () | |
testGetPropName ( $license, $expected) | |
@dataProvider provideGetPropName | |
testGetTitles ( $titles, $missingTitlesByNamespace, $expected) | |
@dataProvider provideGetTitles | |
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.
PageImages\Tests\ApiQueryPageImagesTest::provideGetPropName | ( | ) |
Definition at line 293 of file ApiQueryPageImagesTest.php.
PageImages\Tests\ApiQueryPageImagesTest::provideGetTitles | ( | ) |
Definition at line 100 of file ApiQueryPageImagesTest.php.
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\Tests\ApiQueryPageImagesTest\hasExpectedProperties().
PageImages\Tests\ApiQueryPageImagesTest::testGetAllowedParams | ( | ) |
Definition at line 64 of file ApiQueryPageImagesTest.php.
References PageImages\Tests\ApiQueryPageImagesTest\newInstance().
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.