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 @@
31
31
32
32
function removeDBData() {
33
33
$block = Block::newFromTarget('UTBlockee');
34
- $block->delete();
34
+ if( $block ) {
35
+ $block->delete();
36
+ }
35
37
}
36
38
37
39
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r89071
ApiBlockTest now remove block it creates...
hashar
21:22, 28 May 2011
Status & tagging log
03:00, 16 June 2011
😂
(
talk
|
contribs
)
changed the
status
of r89075
[
removed:
new
added:
ok]