Deactivate the sqlite based testing now and only run the test suite over the mock...
authorGunnar Wrobel <p@rdus.de>
Tue, 29 Sep 2009 15:53:01 +0000 (17:53 +0200)
committerGunnar Wrobel <p@rdus.de>
Tue, 29 Sep 2009 15:53:01 +0000 (17:53 +0200)
framework/History/test/Horde/History/InterfaceTest.php

index eadb1fe..3575179 100644 (file)
@@ -68,7 +68,8 @@ class Horde_History_InterfaceTest extends PHPUnit_Framework_TestCase
              */
             $this->_environments = array(
                 self::ENVIRONMENT_MOCK,
-                self::ENVIRONMENT_DB,
+                /** Uncomment if you want to run a sqlity based test */
+                //self::ENVIRONMENT_DB,
             );
         }
         return $this->_environments;
@@ -379,6 +380,9 @@ EOL;
 
     public function testMethodGetactiontimestampHasResultIntegerZeroIfGethistoryReturnsAnError()
     {
+        if (!in_array(self::ENVIRONMENT_DB, $this->getEnvironments())) {
+            return;
+        }
         $injector = $this->initializeEnvironment(self::ENVIRONMENT_DB);
         $mock = new Dummy_Db();
         $injector->setInstance('DB_common_write', $mock);
@@ -496,6 +500,9 @@ EOL;
 
     public function testHordehistorysqlConvertsPearErrorToHordeexceptions()
     {
+        if (!in_array(self::ENVIRONMENT_DB, $this->getEnvironments())) {
+            return;
+        }
         $injector = $this->initializeEnvironment(self::ENVIRONMENT_DB);
         $mock = new Dummy_Db();
         $injector->setInstance('DB_common_write', $mock);