Mostly revert r89400: not needed since Brion fixed the tests in other ways
authorChad Horohoe <demon@users.mediawiki.org>
Mon, 8 Aug 2011 16:08:48 +0000 (16:08 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Mon, 8 Aug 2011 16:08:48 +0000 (16:08 +0000)
tests/phpunit/includes/BlockTest.php
tests/phpunit/includes/api/ApiBlockTest.php

index cc6ed92..8d90445 100644 (file)
@@ -5,8 +5,6 @@
  */
 class BlockTest extends MediaWikiLangTestCase {
 
-       const REASON = "Some reason";
-
        private $block, $madeAt;
 
        /* variable used to save up the blockID we insert in this test suite */
@@ -37,7 +35,7 @@ class BlockTest extends MediaWikiLangTestCase {
                }
 
                $this->block = new Block( 'UTBlockee', 1, 0,
-                       self::REASON
+                       'Parce que'
                );
                $this->madeAt = wfTimestamp( TS_MW );
 
@@ -68,7 +66,7 @@ class BlockTest extends MediaWikiLangTestCase {
                // $this->dumpBlocks();
 
                $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");
 
        }
index 227555e..91fb146 100644 (file)
@@ -46,7 +46,7 @@ class ApiBlockTest extends ApiTestCase {
                $data = $this->doApiRequest( array(
                        'action' => 'block',
                        'user' => 'UTBlockee',
-                       'reason' => BlockTest::REASON,
+                       'reason' => 'Some reason',
                        'token' => $pageinfo['blocktoken'] ), $data );
 
                $block = Block::newFromTarget('UTBlockee');