r89075 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89074‎ | r89075 | r89076 >
Date:21:43, 28 May 2011
Author:hashar
Status:ok
Tags:
Comment:
ApiBlockTest: delete a block only if it exist

Fix cruise control, follow up r89071
Modified paths:
  • /trunk/phase3/tests/phpunit/includes/api/ApiBlockTest.php (modified) (history)

Diff [purge]

Index: trunk/phase3/tests/phpunit/includes/api/ApiBlockTest.php
@@ -30,7 +30,9 @@
3131
3232 function removeDBData() {
3333 $block = Block::newFromTarget('UTBlockee');
34 - $block->delete();
 34+ if( $block ) {
 35+ $block->delete();
 36+ }
3537 }
3638
3739

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r89071ApiBlockTest now remove block it creates...hashar21:22, 28 May 2011

Status & tagging log