https://www.mediawiki.org/wiki/Special:Code/MediaWiki/112566
Revision: 112566
Author: aaron
Date: 2012-02-28 02:32:59 +0000 (Tue, 28 Feb 2012)
Log Message:
-----------
r112563: Removed random bogus user IDs passed into to Block constructor in tests
Modified Paths:
--------------
trunk/phase3/tests/phpunit/includes/BlockTest.php
trunk/phase3/tests/phpunit/includes/TitlePermissionTest.php
Modified: trunk/phase3/tests/phpunit/includes/BlockTest.php
===================================================================
--- trunk/phase3/tests/phpunit/includes/BlockTest.php 2012-02-28 02:18:18 UTC
(rev 112565)
+++ trunk/phase3/tests/phpunit/includes/BlockTest.php 2012-02-28 02:32:59 UTC
(rev 112566)
@@ -35,7 +35,7 @@
$oldBlock->delete();
}
- $this->block = new Block( 'UTBlockee', 1, 0,
+ $this->block = new Block( 'UTBlockee', $user->getID(), 0,
'Parce que', 0, false, time() + 100500
);
$this->madeAt = wfTimestamp( TS_MW );
Modified: trunk/phase3/tests/phpunit/includes/TitlePermissionTest.php
===================================================================
--- trunk/phase3/tests/phpunit/includes/TitlePermissionTest.php 2012-02-28
02:18:18 UTC (rev 112565)
+++ trunk/phase3/tests/phpunit/includes/TitlePermissionTest.php 2012-02-28
02:32:59 UTC (rev 112566)
@@ -629,7 +629,7 @@
$prev = time();
$now = time() + 120;
$this->user->mBlockedby = $this->user->getId();
- $this->user->mBlock = new Block( '127.0.8.1',
$this->user->getId(), $this->user->getId(),
+ $this->user->mBlock = new Block( '127.0.8.1', 0,
$this->user->getId(),
'no reason given', $prev + 3600, 1, 0 );
$this->user->mBlock->mTimestamp = 0;
$this->assertEquals( array( array( 'autoblockedtext',
@@ -646,7 +646,7 @@
global $wgLocalTZoffset;
$wgLocalTZoffset = -60;
$this->user->mBlockedby = $this->user->getName();
- $this->user->mBlock = new Block( '127.0.8.1', 2, 1, 'no reason
given', $now, 0, 10 );
+ $this->user->mBlock = new Block( '127.0.8.1', 0, 1, 'no reason
given', $now, 0, 10 );
$this->assertEquals( array( array( 'blockedtext',
'[[User:Useruser|Useruser]]', 'no reason given',
'127.0.0.1',
'Useruser', null, '23:00, 31 December 1969',
'127.0.8.1',
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs