X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=tests%2Fphpunit%2Fincludes%2Fjobqueue%2FRefreshLinksPartitionTest.php;h=3d2b5d81ba8cb3c9d5cf38178d0740b40d386bf4;hb=a5b5f90fb956605601bd14aed695c8c962b0d064;hp=531a95474c81339bc7588a5e4c45b2ac50eda9f8;hpb=b0b37fd95cd0e97fa5ceab0b0d1f5e2ce88b2b90;p=lhc%2Fweb%2Fwiklou.git diff --git a/tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php b/tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php index 531a95474c..3d2b5d81ba 100644 --- a/tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php +++ b/tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php @@ -6,7 +6,7 @@ * @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'; @@ -20,9 +20,6 @@ class RefreshLinksPartitionTest extends MediaWikiTestCase { 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 ) );