Add parent::setUp() to DatabaseSQLTest
authorumherirrender <umherirrender_de.wp@web.de>
Thu, 6 Dec 2012 16:57:37 +0000 (17:57 +0100)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 6 Dec 2012 21:20:52 +0000 (21:20 +0000)
1) DatabaseSQLTest::testMediaWikiTestCaseParentSetupCalled
DatabaseSQLTest::setUp() must call parent::setUp()
Failed asserting that an array has the key 'setUp'.

Change-Id: I6aa5cb09999e0cee9b36fedd9193cb5aa08914ad

tests/phpunit/includes/db/DatabaseSQLTest.php

index 0c9f749..51127f8 100644 (file)
@@ -9,6 +9,7 @@
 class DatabaseSQLTest extends MediaWikiTestCase {
 
        protected function setUp() {
+               parent::setUp();
                // TODO support other DBMS or find another way to do it
                if ( $this->db->getType() !== 'mysql' ) {
                        $this->markTestSkipped( 'No mysql database' );