mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/TextExtracts
synced 2024-11-23 15:56:52 +00:00
Use ExpirationAwareness instead of deprecated IExpiringStore
IExpiringStore has been deprecated since 1.35 and we can either use the ExpirationAwareness or StorageAwareness constants where necessary. Change-Id: Ida557b3180eb5e7ebae46968142b4f154f26ffbc
This commit is contained in:
parent
cd565f856a
commit
627f65ebff
|
@ -6,6 +6,7 @@ use ILanguageConverter;
|
|||
use MediaWiki\Languages\LanguageConverterFactory;
|
||||
use MediaWikiCoversValidator;
|
||||
use TextExtracts\ApiQueryExtracts;
|
||||
use Wikimedia\LightweightObjectStore\ExpirationAwareness;
|
||||
use Wikimedia\TestingAccessWrapper;
|
||||
|
||||
/**
|
||||
|
@ -19,7 +20,7 @@ class ApiQueryExtractsTest extends \MediaWikiIntegrationTestCase {
|
|||
|
||||
private function newInstance() {
|
||||
$config = new \HashConfig( [
|
||||
'ParserCacheExpireTime' => \IExpiringStore::TTL_INDEFINITE,
|
||||
'ParserCacheExpireTime' => ExpirationAwareness::TTL_INDEFINITE,
|
||||
] );
|
||||
|
||||
$configFactory = $this->createMock( \ConfigFactory::class );
|
||||
|
|
Loading…
Reference in a new issue