tests: mark tests requiring a database connection
authorAntoine Musso <hashar@users.mediawiki.org>
Wed, 18 Jan 2012 15:50:00 +0000 (15:50 +0000)
committerAntoine Musso <hashar@users.mediawiki.org>
Wed, 18 Jan 2012 15:50:00 +0000 (15:50 +0000)
tests/phpunit/includes/db/DatabaseSqliteTest.php
tests/phpunit/includes/filerepo/StoreBatchTest.php

index ce8f5d6..067c731 100644 (file)
@@ -19,6 +19,7 @@ class MockDatabaseSqlite extends DatabaseSqliteStandalone {
 
 /**
  * @group sqlite
+ * @group Database
  */
 class DatabaseSqliteTest extends MediaWikiTestCase {
        var $db;
index 0dc7b5d..6462cb2 100644 (file)
@@ -26,6 +26,10 @@ class StoreBatchTest extends MediaWikiTestCase {
                $this->date = gmdate( "YmdHis" );
                $this->createdFiles = array();
 
+               // ApiTestUser requires a database connection. Code below does not
+               // seem to be needed so it is commented out to not make this test
+               // requires a database connection.
+               /**
                $this->users = array(
                        'sysop' => new ApiTestUser(
                                'Uploadstashtestsysop',
@@ -40,6 +44,7 @@ class StoreBatchTest extends MediaWikiTestCase {
                                array()
                        )
                );
+               **/
        }
 
        /**