drop orm_test table on teardown
authorumherirrender <umherirrender_de.wp@web.de>
Sat, 10 Nov 2012 16:42:03 +0000 (17:42 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Sat, 10 Nov 2012 19:05:04 +0000 (19:05 +0000)
No need to keep this table after the test

Change-Id: Id6814ceca063294da0761caa9a0d9975118dd4f1

tests/phpunit/includes/db/TestORMRowTest.php

index e33ae01..603992e 100644 (file)
@@ -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(