HomePhabricator

Fix EchoTitleLocalCacheTest::testGet corner case

This commit no longer exists in the repository. It may have been part of a branch which was deleted.This commit has been deleted in the repository: it is no longer reachable from any branch, tag, or ref.

Description

Fix EchoTitleLocalCacheTest::testGet corner case

EchoTitleLocalCache title cache resolution ends up querying the database
to resolve title id to Title object.

In some corner case, we might only have one page in the database (UTPage
as provided by MediaWikiTestCase), thus the id 2 would not resolve to a
Title breaking the test.

Use insertPage() to ensure we have a second page.

Bug: T78592
Change-Id: Ia9dbb256f566e489e1c81d89b6a6077831e07fc3
(cherry picked from commit 7f5b0c17933e781b3b29d5d66d068394a64b7d49)

Details

Provenance
hasharAuthored on
ChangeId
Ia9dbb256f566e489e1c81d89b6a6077831e07fc3

Commit No Longer Exists

This commit no longer exists in the repository.