From: Aryeh Gregor Date: Thu, 4 Oct 2018 12:55:55 +0000 (+0300) Subject: Minor cleanup in ApiBlockTest X-Git-Tag: 1.34.0-rc.0~3894^2 X-Git-Url: http://git.cyclocoop.org/clavettes/images/Dun%D0%B0?a=commitdiff_plain;h=c057200613cd5957419389b3dc01a826c9eb396e;p=lhc%2Fweb%2Fwiklou.git Minor cleanup in ApiBlockTest Use tablesUsed instead of cleaning up ourselves. Change-Id: Ibe470a8f292d65ceeaa098d5c033b8585501a9f3 --- diff --git a/tests/phpunit/includes/api/ApiBlockTest.php b/tests/phpunit/includes/api/ApiBlockTest.php index 9980f3a259..07e861feac 100644 --- a/tests/phpunit/includes/api/ApiBlockTest.php +++ b/tests/phpunit/includes/api/ApiBlockTest.php @@ -14,20 +14,12 @@ class ApiBlockTest extends ApiTestCase { parent::setUp(); $this->tablesUsed = array_merge( $this->tablesUsed, - [ 'change_tag', 'change_tag_def', 'logging' ] + [ 'ipblocks', 'change_tag', 'change_tag_def', 'logging' ] ); $this->mUser = $this->getMutableTestUser()->getUser(); } - protected function tearDown() { - $block = Block::newFromTarget( $this->mUser->getName() ); - if ( !is_null( $block ) ) { - $block->delete(); - } - parent::tearDown(); - } - protected function getTokens() { return $this->getTokenList( self::$users['sysop'] ); }