r90853 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r90852‎ | r90853 | r90854 >
Date:20:04, 26 June 2011
Author:mah
Status:ok
Tags:
Comment:
random eol w/s annoys me.
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/BlockTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/BlockTest.php
@@ -6,26 +6,26 @@
77 class BlockTest extends MediaWikiLangTestCase {
88
99 const REASON = "Some reason";
10 -
 10+
1111 private $block, $madeAt;
1212
1313 /* variable used to save up the blockID we insert in this test suite */
1414 private $blockId;
15 -
 15+
1616 function setUp() {
1717 global $wgContLang;
1818 parent::setUp();
1919 $wgContLang = Language::factory( 'en' );
2020 }
21 -
 21+
2222 function addDBData() {
2323 //$this->dumpBlocks();
24 -
 24+
2525 $user = User::newFromName( 'UTBlockee' );
2626 if( $user->getID() == 0 ) {
2727 $user->addToDatabase();
2828 $user->setPassword( 'UTBlockeePassword' );
29 -
 29+
3030 $user->saveSettings();
3131 }
3232
@@ -70,16 +70,16 @@
7171 $this->assertTrue( $this->block->equals( Block::newFromTarget('UTBlockee') ), "newFromTarget() returns the same block as the one that was made");
7272
7373 $this->assertTrue( $this->block->equals( Block::newFromID( $this->blockId ) ), "newFromID() returns the same block as the one that was made");
74 -
 74+
7575 }
76 -
 76+
7777 /**
7878 * per bug 26425
7979 */
8080 function testBug26425BlockTimestampDefaultsToTime() {
81 -
 81+
8282 $this->assertEquals( $this->madeAt, $this->block->mTimestamp, "If no timestamp is specified, the block is recorded as time()");
83 -
 83+
8484 }
8585
8686 /**

Status & tagging log