From: umherirrender Date: Sat, 10 Nov 2012 16:42:03 +0000 (+0100) Subject: drop orm_test table on teardown X-Git-Tag: 1.31.0-rc.0~21622^2 X-Git-Url: http://git.cyclocoop.org/wiki/Target_page?a=commitdiff_plain;h=93dd5435f0ad71d75ba47c655f56167c45791dc8;p=lhc%2Fweb%2Fwiklou.git drop orm_test table on teardown No need to keep this table after the test Change-Id: Id6814ceca063294da0761caa9a0d9975118dd4f1 --- diff --git a/tests/phpunit/includes/db/TestORMRowTest.php b/tests/phpunit/includes/db/TestORMRowTest.php index e33ae0181d..603992eeac 100644 --- a/tests/phpunit/includes/db/TestORMRowTest.php +++ b/tests/phpunit/includes/db/TestORMRowTest.php @@ -78,10 +78,18 @@ class TestORMRowTest extends ORMRowTest { test_stuff BLOB NOT NULL, test_moarstuff BLOB NOT NULL, test_time varbinary(14) NOT NULL - );' + );', + __METHOD__ ); } + protected function tearDown() { + $dbw = wfGetDB( DB_MASTER ); + $dbw->dropTable( 'orm_test', __METHOD__ ); + + parent::tearDown(); + } + public function constructorTestProvider() { return array( array(