* @param int $bSize BacklinkCache partition size; usually $wgUpdateRowsPerJob
* @param int $cSize Max titles per leaf job; Usually 1 or a modest value
* @param array $opts Optional parameter map
- * @return array List of Job objects
+ * @return Job[] List of Job objects
*/
public static function partitionBacklinkJob( Job $job, $bSize, $cSize, $opts = array() ) {
$class = get_class( $job );
* @group Database
*/
class RefreshLinksPartitionTest extends MediaWikiTestCase {
- function __construct( $name = null, array $data = array(), $dataName = '' ) {
+ public function __construct( $name = null, array $data = array(), $dataName = '' ) {
parent::__construct( $name, $data, $dataName );
$this->tablesUsed[] = 'page';
public function testRefreshLinks( $ns, $dbKey, $pages ) {
$title = Title::makeTitle( $ns, $dbKey );
- $dbw = wfGetDB( DB_MASTER );
-
- $rows = array();
foreach ( $pages as $page ) {
list( $bns, $bdbkey ) = $page;
$bpage = WikiPage::factory( Title::makeTitle( $bns, $bdbkey ) );