mediawiki-extensions-Echo/tests/phpunit
Antoine Musso 7f5b0c1793 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
2015-01-09 13:54:08 +01:00
..
api Hygiene: Echo/tests/phpunit/ directory structure should mimic Echo/ 2014-08-21 22:58:27 +00:00
controller Hygiene: Move notification type detection to method 2014-08-22 14:05:47 -07:00
formatters Hygiene: Echo/tests/phpunit/ directory structure should mimic Echo/ 2014-08-21 22:58:27 +00:00
includes Fix EchoTitleLocalCacheTest::testGet corner case 2015-01-09 13:54:08 +01:00
maintenance Hygiene: Echo/tests/phpunit/ directory structure should mimic Echo/ 2014-08-21 22:58:27 +00:00
model Make timestamp in consistent format after loaded from database 2014-08-22 15:53:51 -07:00