From 93dd5435f0ad71d75ba47c655f56167c45791dc8 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Sat, 10 Nov 2012 17:42:03 +0100 Subject: [PATCH] drop orm_test table on teardown No need to keep this table after the test Change-Id: Id6814ceca063294da0761caa9a0d9975118dd4f1 --- tests/phpunit/includes/db/TestORMRowTest.php | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) 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( -- 2.20.1