aboutsummaryrefslogtreecommitdiffstats
path: root/tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php
diff options
context:
space:
mode:
Diffstat (limited to 'tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php')
-rw-r--r--tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php b/tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php
index ef370c06c398..754402bcc28c 100644
--- a/tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php
+++ b/tests/phpunit/includes/jobqueue/RefreshLinksPartitionTest.php
@@ -22,10 +22,11 @@ class RefreshLinksPartitionTest extends MediaWikiIntegrationTestCase {
public function testRefreshLinks( $ns, $dbKey, $pages ) {
$title = Title::makeTitle( $ns, $dbKey );
+ $user = $this->getTestSysop()->getUser();
foreach ( $pages as [ $bns, $bdbkey ] ) {
$bpage = WikiPage::factory( Title::makeTitle( $bns, $bdbkey ) );
$content = ContentHandler::makeContent( "[[{$title->getPrefixedText()}]]", $bpage->getTitle() );
- $bpage->doEditContent( $content, "test" );
+ $bpage->doUserEditContent( $content, $user, "test" );
}
$title->getBacklinkCache()->clear();