Page MenuHomePhabricator
Paste P5979

PHPUnit failures as of df0c0f5
ActivePublic

Authored by Huji on Sep 8 2017, 6:30 PM.
Tags
None
Referenced Files
F9400415: PHPUnit failures as of df0c0f5
Sep 8 2017, 6:30 PM
Subscribers
None
There were 7 failures:
1) ApiComparePagesTest::testDiff with data set "Diff with all props as sysop" (array('{{REPL:revB2}}', '{{REPL:revB3}}', 'ApiComparePagesTest B', 'diff|diffsize|rel|ids|title|u...t|size'), array(array('{{REPL:pageB}}', '{{REPL:revB2}}', 0, 'ApiComparePagesTest B', 3, true, true, '{{REPL:creator}}', '{{REPL:creatorid}}', true, 'Test for ApiComparePagesTest: B 2', 'Test for ApiComparePagesTest: B 2', '{{REPL:pageB}}', '{{REPL:revB3}}', 0, 'ApiComparePagesTest B', 3, true, true, true, '{{REPL:revB1}}', '{{REPL:revB4}}', 391, '<tr><td colspan="2" class="di...</tr>\n')), false, true)
Failed asserting that two arrays are equal.
--- Expected
+++ Actual
@@ @@
'body' => '<tr><td colspan="2" class="di...</tr>\n'
+ 'touser' => 'UTSysop'
+ 'touserid' => 1
+ 'tocomment' => 'Test for ApiComparePagesTest: B 3'
+ 'toparsedcomment' => 'Test for ApiComparePagesTest: B 3'
)
)
/var/www/html/tests/phpunit/includes/api/ApiComparePagesTest.php:149
/var/www/html/tests/phpunit/MediaWikiTestCase.php:415
/var/www/html/maintenance/doMaintenance.php:92
2) UserTest::testAutoblockCookies
Failed asserting that false matches expected true.
/var/www/html/tests/phpunit/includes/user/UserTest.php:642
/var/www/html/tests/phpunit/MediaWikiTestCase.php:415
/var/www/html/maintenance/doMaintenance.php:92
3) UserTest::testAutoblockCookieInfiniteExpiry
Expiry date
Failed asserting that 1504913022 matches expected 1504981422.
/var/www/html/tests/phpunit/includes/user/UserTest.php:737
/var/www/html/tests/phpunit/MediaWikiTestCase.php:415
/var/www/html/maintenance/doMaintenance.php:92
4) UserTest::testSoftBlockRanges
Failed asserting that Block Object &00000000296d521c00000000712306e0 (
'mReason' => ''
'mTimestamp' => '20170908182342'
'mAuto' => '0'
'mExpiry' => '20170908232342'
'mHideName' => '0'
'mParentBlockId' => null
'mId' => 31
'mFromMaster' => false
'mBlockEmail' => '0'
'mDisableUsertalk' => true
'mCreateAccount' => '0'
'target' => User Object &00000000296d521900000000712306e0 (
'mId' => null
'mName' => 'TestUser 1a4740.002'
'mRealName' => null
'mEmail' => null
'mTouched' => null
'mQuickTouched' => null
'mToken' => null
'mEmailAuthenticated' => null
'mEmailToken' => null
'mEmailTokenExpires' => null
'mRegistration' => null
'mEditCount' => null
'mGroups' => null
'mGroupMemberships' => null
'mOptionOverrides' => null
'mOptionsLoaded' => false
'mLoadedItems' => Array &0 (
'name' => true
)
'mFrom' => 'name'
'mNewtalk' => -1
'mDatePreference' => null
'mBlockedby' => -1
'mHash' => false
'mRights' => null
'mBlockreason' => null
'mEffectiveGroups' => null
'mImplicitGroups' => null
'mFormerGroups' => null
'mGlobalBlock' => null
'mLocked' => null
'mHideName' => null
'mOptions' => null
'mRequest' => null
'mBlock' => null
'mAllowUsertalk' => null
'mBlockedFromCreateAccount' => false
'queryFlagsUsed' => 0
)
'forcedTargetID' => null
'type' => 1
'blocker' => ''
'isHardblock' => true
'isAutoblocking' => '1'
'systemBlockType' => null
) is null.
/var/www/html/tests/phpunit/includes/user/UserTest.php:784
/var/www/html/tests/phpunit/MediaWikiTestCase.php:415
/var/www/html/maintenance/doMaintenance.php:92
5) UserTest::testAutoblockCookieInauthentic
Failed asserting that true is false.
/var/www/html/tests/phpunit/includes/user/UserTest.php:817
/var/www/html/tests/phpunit/MediaWikiTestCase.php:415
/var/www/html/maintenance/doMaintenance.php:92
6) UserTest::testAutoblockCookieNoSecretKey
Failed asserting that false matches expected true.
/var/www/html/tests/phpunit/includes/user/UserTest.php:858
/var/www/html/tests/phpunit/MediaWikiTestCase.php:415
/var/www/html/maintenance/doMaintenance.php:92
7) ResourcesTest::testMissingDependencies
The module 'ext.visualEditor.mwcore' required by 'ext.math.visualEditor' must exist
Failed asserting that an array contains 'ext.visualEditor.mwcore'.
/var/www/html/tests/phpunit/structure/ResourcesTest.php:82
/var/www/html/tests/phpunit/MediaWikiTestCase.php:415
/var/www/html/maintenance/doMaintenance.php:92
FAILURES!
Tests: 16969, Assertions: 78992, Errors: 44, Failures: 7, Skipped: 186, Risky: 5.