r89071 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r89070
|
r89071
|
r89072
>
Date:
21:22, 28 May 2011
Author:
hashar
Status:
resolved
Tags:
Comment:
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
Modified paths:
/trunk/phase3/tests/phpunit/includes/api/ApiBlockTest.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/tests/phpunit/includes/api/ApiBlockTest.php
—
—
@@ -27,8 +27,12 @@
28
28
$user->saveSettings();
29
29
}
30
30
}
31
-
32
31
32
+ function removeDBData() {
33
+ $block = Block::newFromTarget('UTBlockee');
34
+ $block->delete();
35
+ }
36
+
33
37
34
38
function testMakeNormalBlock() {
35
39
Follow-up revisions
Revision
Commit summary
Author
Date
r89075
ApiBlockTest: delete a block only if it exist...
hashar
21:43, 28 May 2011
Past revisions this follows-up on
Revision
Commit summary
Author
Date
r88755
Fixup phpunit tests so we don't drop/create tables on EVERY SINGLE TEST....
demon
21:22, 24 May 2011
r89070
Allow test to remove data from the database...
hashar
21:19, 28 May 2011
Status & tagging log
21:43, 28 May 2011
Hashar
(
talk
|
contribs
)
changed the
status
of r89071
[
removed:
ok
added:
resolved]
21:23, 28 May 2011
Krinkle
(
talk
|
contribs
)
changed the
status
of r89071
[
removed:
new
added:
ok]