diff --git a/tests/phpunit/RecordLintJobTest.php b/tests/phpunit/RecordLintJobTest.php index 7aa62291..4839f4e3 100644 --- a/tests/phpunit/RecordLintJobTest.php +++ b/tests/phpunit/RecordLintJobTest.php @@ -26,7 +26,6 @@ use MediaWiki\Linter\LintError; use MediaWiki\Linter\RecordLintJob; use Title; use User; -use WikiPage; /** * @group Database @@ -47,7 +46,7 @@ class RecordLintJobTest extends \MediaWikiIntegrationTestCase { if ( $user->getId() === 0 ) { $user->addToDatabase(); } - $page = WikiPage::factory( $title ); + $page = $this->getServiceContainer()->getWikiPageFactory()->newFromTitle( $title ); $content = ContentHandler::makeContent( $baseText, $title ); $page->doUserEditContent( $content, $user, "base text for test" );