From: Timo Tijhof Date: Wed, 27 Dec 2017 20:52:44 +0000 (+0100) Subject: phpunit: Remove outdated comment about calling of LinkCache::clear() X-Git-Tag: 1.31.0-rc.0~1074^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=cd9f2f44e5fe2e3fedd0250e3a9694f5b5f8d4be;p=lhc%2Fweb%2Fwiklou.git phpunit: Remove outdated comment about calling of LinkCache::clear() This is actually being called now, from resetDB() between tests. Change-Id: I5aa15ce3fd57b6fc90b424fde8691ff33c7ddf45 --- 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 );