Fix WikiPageDbTestBase::testNewFromId_returnsNullOnNonExistingId
authorBrad Jorsch <bjorsch@wikimedia.org>
Sun, 18 Mar 2018 02:02:13 +0000 (22:02 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Sun, 18 Mar 2018 02:02:13 +0000 (22:02 -0400)
commitfd3ddd93e26c029b56882df4e9b47642bec296f7
tree3bd91f0da126d4f98f4ce3d4eff08047e3138b46
parent1f64fa48d397fca02befcd4fd7502655b9463619
Fix WikiPageDbTestBase::testNewFromId_returnsNullOnNonExistingId

This test is passing an "integer" that is beyond what even 64-bit PHP
can properly represent as an integer, so it likely winds up passing it
as '7.3574757437438E+19' to the database. MySQL, being MySQL, doesn't
care much, but other DBs do.

Change it to 2**31-1 instead.

Change-Id: Ieba51f034eaa1c3eabb2ada6b1ce876beefd3bff
tests/phpunit/includes/page/WikiPageDbTestBase.php