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:
Derick Alangi 2023-08-06 22:28:48 +01:00
parent cd565f856a
commit 627f65ebff
No known key found for this signature in database
GPG key ID: 01D205B3F82BADDA

View file

@ -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 );