From 2a198b5f060f9890ee6e78aaf6d5d99994da2fef Mon Sep 17 00:00:00 2001 From: Antoine Musso Date: Sat, 28 May 2011 21:22:29 +0000 Subject: [PATCH] ApiBlockTest now remove block it creates 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 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/phpunit/includes/api/ApiBlockTest.php b/tests/phpunit/includes/api/ApiBlockTest.php index 60b80c73c8..ff63a049ea 100644 --- a/tests/phpunit/includes/api/ApiBlockTest.php +++ b/tests/phpunit/includes/api/ApiBlockTest.php @@ -27,7 +27,11 @@ class ApiBlockTest extends ApiTestSetup { $user->saveSettings(); } } - + + function removeDBData() { + $block = Block::newFromTarget('UTBlockee'); + $block->delete(); + } function testMakeNormalBlock() { -- 2.20.1