MediaWiki  master
CategoryChangesAsRdfTest Class Reference

Tests for CategoryChangesAsRdf recent changes exporter. More...

Inheritance diagram for CategoryChangesAsRdfTest:
Collaboration diagram for CategoryChangesAsRdfTest:

Public Member Functions

 getCategoryLinksIterator ( $dbr, array $ids)
 Mock category links iterator. More...
 
 provideCategoryData ()
 
 setUp ()
 
 testSparqlUpdate ( $testFileName, $iterator, $handler, $result, array $preProcessed=[])
 provideCategoryData More...
 
 testUpdateTs ()
 

Additional Inherited Members

- Protected Member Functions inherited from MediaWikiLangTestCase
 setUp ()
 

Detailed Description

Tests for CategoryChangesAsRdf recent changes exporter.

CategoryChangesAsRdf

Definition at line 9 of file categoryChangesAsRdfTest.php.

Member Function Documentation

◆ getCategoryLinksIterator()

CategoryChangesAsRdfTest::getCategoryLinksIterator (   $dbr,
array  $ids 
)

Mock category links iterator.

Parameters
IDatabase$dbr
array$ids
Returns
array

Definition at line 197 of file categoryChangesAsRdfTest.php.

References $res, as, and object.

◆ provideCategoryData()

CategoryChangesAsRdfTest::provideCategoryData ( )

Definition at line 20 of file categoryChangesAsRdfTest.php.

References NS_CATEGORY, NS_MAIN, null, object, and true.

◆ setUp()

CategoryChangesAsRdfTest::setUp ( )

Definition at line 11 of file categoryChangesAsRdfTest.php.

◆ testSparqlUpdate()

CategoryChangesAsRdfTest::testSparqlUpdate (   $testFileName,
  $iterator,
  $handler,
  $result,
array  $preProcessed = [] 
)

provideCategoryData

Parameters
string$testFileNameName of the test, defines filename with expected results.
string$iteratorIterator method name to mock
string$handlerHandler method to call
array$resultResult to be returned from mock iterator
array$preProcessedList of pre-processed items

Definition at line 213 of file categoryChangesAsRdfTest.php.

References $dbr, $output, as, class, DB_REPLICA, and wfGetDB().

◆ testUpdateTs()

CategoryChangesAsRdfTest::testUpdateTs ( )

Definition at line 257 of file categoryChangesAsRdfTest.php.


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