MediaWiki  REL1_24
ApiUnblockTest.php
Go to the documentation of this file.
00001 <?php
00002 
00010 class ApiUnblockTest extends ApiTestCase {
00011     protected function setUp() {
00012         parent::setUp();
00013         $this->doLogin();
00014     }
00015 
00019     public function testWithNoToken( ) {
00020         $this->doApiRequest(
00021             array(
00022                 'action' => 'unblock',
00023                 'user' => 'UTApiBlockee',
00024                 'reason' => 'Some reason',
00025             ),
00026             null,
00027             false,
00028             self::$users['sysop']->user
00029         );
00030     }
00031 }