http://www.mediawiki.org/wiki/Special:Code/MediaWiki/90853
Revision: 90853
Author: mah
Date: 2011-06-26 20:04:38 +0000 (Sun, 26 Jun 2011)
Log Message:
-----------
random eol w/s annoys me.
Modified Paths:
--------------
trunk/phase3/tests/phpunit/includes/BlockTest.php
Modified: trunk/phase3/tests/phpunit/includes/BlockTest.php
===================================================================
--- trunk/phase3/tests/phpunit/includes/BlockTest.php 2011-06-26 20:00:58 UTC
(rev 90852)
+++ trunk/phase3/tests/phpunit/includes/BlockTest.php 2011-06-26 20:04:38 UTC
(rev 90853)
@@ -6,26 +6,26 @@
class BlockTest extends MediaWikiLangTestCase {
const REASON = "Some reason";
-
+
private $block, $madeAt;
/* variable used to save up the blockID we insert in this test suite */
private $blockId;
-
+
function setUp() {
global $wgContLang;
parent::setUp();
$wgContLang = Language::factory( 'en' );
}
-
+
function addDBData() {
//$this->dumpBlocks();
-
+
$user = User::newFromName( 'UTBlockee' );
if( $user->getID() == 0 ) {
$user->addToDatabase();
$user->setPassword( 'UTBlockeePassword' );
-
+
$user->saveSettings();
}
@@ -70,16 +70,16 @@
$this->assertTrue( $this->block->equals(
Block::newFromTarget('UTBlockee') ), "newFromTarget() returns the same block as
the one that was made");
$this->assertTrue( $this->block->equals( Block::newFromID(
$this->blockId ) ), "newFromID() returns the same block as the one that was
made");
-
+
}
-
+
/**
* per bug 26425
*/
function testBug26425BlockTimestampDefaultsToTime() {
-
+
$this->assertEquals( $this->madeAt, $this->block->mTimestamp,
"If no timestamp is specified, the block is recorded as time()");
-
+
}
/**
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs