More user related Revision construction test cases
authoraddshore <addshorewiki@gmail.com>
Mon, 20 Nov 2017 20:12:08 +0000 (20:12 +0000)
committeraddshore <addshorewiki@gmail.com>
Mon, 20 Nov 2017 20:37:11 +0000 (20:37 +0000)
commitb8351fed48836e3be0cebdde53239220f6141a03
tree8d795f33455966e3be96c0740f0cda28138ae8f1
parent496d93f70ea010fbb6d81f300951a2b64a3ec84d
More user related Revision construction test cases

I4f24e7fbb683cb51f3fd8b250732bae9c7541ba2 releaved
a failing test "PageArchiveTest::testUndeleteRevisions"
that constructs a revision from an array only passing
in 'user_text' and no 'user' field.

After investigation this is quite an odd case that
probably shouldnt happen in production code.

The test cases in this patch test the current behaviour.

Bug: T180210
Change-Id: I7040a16ac6cb29b49f8e7bed1caee72cdd4c6a61
tests/phpunit/includes/RevisionTest.php