r89070 MediaWiki - Code Review archive
Repository:
MediaWiki
Revision:
<
r89069
|
r89070
|
r89071
>
Date:
21:19, 28 May 2011
Author:
hashar
Status:
ok
Tags:
Comment:
Allow test to remove data from the database
This new removeDBData() is run after the tests result. It is similar
to the addDBData() method.
Modified paths:
/trunk/phase3/tests/phpunit/MediaWikiTestCase.php
(modified) (
history
)
Diff
[
purge
]
Index: trunk/phase3/tests/phpunit/MediaWikiTestCase.php
—
—
@@ -59,6 +59,9 @@
60
60
$this->addDBData();
61
61
62
62
parent::run( $result );
63
+
64
+ $this->removeDBData();
65
+
63
66
} else {
64
67
parent::run( $result );
65
68
}
—
—
@@ -84,6 +87,12 @@
85
88
* implement this method and do so
86
89
*/
87
90
function addDBData() {}
91
+
92
+ /**
93
+ * Stub. If a test needs to remove data from the database. Called after
94
+ * test run.
95
+ */
96
+ function removeDBData() {}
88
97
89
98
private function addCoreDBData() {
90
99
Follow-up revisions
Revision
Commit summary
Author
Date
r89071
ApiBlockTest now remove block it creates...
hashar
21:22, 28 May 2011
Status & tagging log
21:24, 28 May 2011
Krinkle
(
talk
|
contribs
)
changed the
status
of r89070
[
removed:
new
added:
ok]