HomePhabricator

Fix EchoTitleLocalCacheTest::testGet corner case

Authored by hashar.

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

Details

Committed
hasharJan 9 2015, 12:54 PM
Parents
rECHO171c863a4889: Localisation updates from https://translatewiki.net.
Branches
Unknown
Tags
Unknown
ChangeId
Ia9dbb256f566e489e1c81d89b6a6077831e07fc3