From cd9f2f44e5fe2e3fedd0250e3a9694f5b5f8d4be Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Wed, 27 Dec 2017 21:52:44 +0100 Subject: [PATCH] phpunit: Remove outdated comment about calling of LinkCache::clear() This is actually being called now, from resetDB() between tests. Change-Id: I5aa15ce3fd57b6fc90b424fde8691ff33c7ddf45 --- tests/phpunit/MediaWikiTestCase.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/phpunit/MediaWikiTestCase.php b/tests/phpunit/MediaWikiTestCase.php index 4d3c37bda5..9f2e5f9395 100644 --- a/tests/phpunit/MediaWikiTestCase.php +++ b/tests/phpunit/MediaWikiTestCase.php @@ -1008,10 +1008,6 @@ abstract class MediaWikiTestCase extends PHPUnit_Framework_TestCase { $user = static::getTestSysop()->getUser(); $comment = __METHOD__ . ': Sample page for unit test.'; - // Avoid memory leak...? - // LinkCache::singleton()->clear(); - // Maybe. But doing this absolutely breaks $title->isRedirect() when called during unit tests.... - $page = WikiPage::factory( $title ); $page->doEditContent( ContentHandler::makeContent( $text, $title ), $comment, 0, false, $user ); -- 2.20.1