Commit graph

7 commits

Author SHA1 Message Date
thiemowmde
4bd95cd96b Use MainConfigNames constants in tests where possible
I believe this makes the code less brittle, and also makes it a bit
more obvious what these strings are meant to represent.

Change-Id: Ia39b5c80af4b495931d0a68fd091b783645dd709
2024-07-10 10:11:22 +00:00
Máté Szabó
4920e1a71e PageStore: Migrate to StatsLib
Use StatsFactory for emitting metrics from PageStore and add assertions
for the new metrics.

Bug: T359374
Change-Id: Id099f54eb79a2dce078259cf9c13e548c1ec56f2
2024-05-05 15:36:33 +02:00
Umherirrender
4ebc942005 tests: Run iterator_to_array for Generator before assertCount
Passing an argument of type Generator for the $haystack parameter is
deprecated. Support for this will be removed in PHPUnit 10.

Bug: T342110
Change-Id: Id7c33972836be815622e1495ad2bcbbf952b7493
2024-02-24 20:16:49 +01:00
daniel
3b6345ca16 PageStore: Use LinkCache
This makes the data stored by LinkCache compatible with PageStoreRecord,
so we can use LinkCache inside PageStore.

This causes PageStore to make use of local caching as well as WANObjectCache.

Note that getPageById() does not yet benefit from cache, but does
populate the cache.

Bug: T278940
Change-Id: Icc27a0d9299a3e4ce45521daef87ad06ec06f064
2021-09-01 08:24:34 +00:00
Umherirrender
134045b9aa tests: Swap assertion order in unit tests
Changes from patch set Icb93c79f4843b59dae80d3eda1a880457a1a68f2
Also some swaps from assertEquals to assertSame/True/False/Null

Change-Id: Ife497ae6cb1888b77eb25e85b76df72adc65641a
2021-08-04 20:21:01 +02:00
Petr Pchelko
4ca16e8d08 Eliminate use of Title object in REST infrastructure
Change-Id: I585f0f23cac5f6dc2a4879f69f7b83828fda3dd3
2021-05-05 18:54:58 -07:00
daniel
d4b380ab27 Introduce PageSelectQueryBuilder
Change-Id: Ibcb37affa9ba1c891bc62964a3dd34b67214cfa1
2021-03-24 19:15:01 +01:00