From: Mark A. Hershberger Date: Sun, 26 Jun 2011 20:04:38 +0000 (+0000) Subject: random eol w/s annoys me. X-Git-Tag: 1.31.0-rc.0~29260 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=780ba99ac87e6d6d62e0aac253507bd8470e0345;p=lhc%2Fweb%2Fwiklou.git random eol w/s annoys me. --- diff --git a/tests/phpunit/includes/BlockTest.php b/tests/phpunit/includes/BlockTest.php index 91872d08a1..2f224ba841 100644 --- a/tests/phpunit/includes/BlockTest.php +++ b/tests/phpunit/includes/BlockTest.php @@ -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 @@ class BlockTest extends MediaWikiLangTestCase { $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()"); - + } /**