ApiBlockTest now remove block it creates
authorAntoine Musso <hashar@users.mediawiki.org>
Sat, 28 May 2011 21:22:29 +0000 (21:22 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Sat, 28 May 2011 21:22:29 +0000 (21:22 +0000)
This follow up r88755 that make tests depends on each other. The creation
of a Block through the API is troublesome to the BlockTest suite.

Requires r89070

tests/phpunit/includes/api/ApiBlockTest.php

index 60b80c7..ff63a04 100644 (file)
@@ -27,7 +27,11 @@ class ApiBlockTest extends ApiTestSetup {
                        $user->saveSettings();
                }
        }
-       
+
+       function removeDBData() {
+               $block = Block::newFromTarget('UTBlockee');
+               $block->delete();       
+       }       
 
        
        function testMakeNormalBlock() {