You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Add Carbon 3 boundary coverage for timestamp parsing and integer-cast diff behavior (#1132)
- `MWTimestampHelperTest.php`: Removed `if` block that checked for type
of `$carbon` since `getCarbonFromMWTimestamp()` returns
`CarbonImmutable`, `TypeError` will be thrown if not.
- `SendEmptyWikiNotificationsJobTest.php`: Tightened
notification-threshold coverage so a wiki that is almost old enough (for
example: 29.5 days old) does not trigger an empty-wiki notification
early.
- `PlatformStatsSummaryJobTest.php`: Added a test to ensure a
second-precision `lastEdit` timestamp exactly at the inactivity cutoff
is still counted as active.
- `ConversionMetricTest.php`: Added a test to verify fractional day
diffs are truncated to the integer values expected by the conversion
metrics API.
Bug: T426592
---------
Co-authored-by: Ollie <43674967+outdooracorn@users.noreply.github.com>
0 commit comments