]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
move unittest config deletion to setup since that makes it easier to debug, and does...
authorChristian Weiske <cweiske@cweiske.de>
Wed, 6 Apr 2011 07:50:42 +0000 (09:50 +0200)
committerChristian Weiske <cweiske@cweiske.de>
Wed, 6 Apr 2011 07:50:42 +0000 (09:50 +0200)
tests/TestBaseApi.php

index 73135fb79e0da54774c2d5bea2839dc1354aebce..9081a4ab02f939bd9f3cd043156c2cd86e9009e6 100644 (file)
@@ -47,6 +47,11 @@ class TestBaseApi extends TestBase
         }
         $this->url = $GLOBALS['unittestUrl'] . $this->urlPart;
 
+        //clean up before test
+        if (file_exists($GLOBALS['datadir'] . '/config.unittest.php')) {
+            unlink($GLOBALS['datadir'] . '/config.unittest.php');
+        }
+
         $this->us = SemanticScuttle_Service_Factory::get('User');
         $this->us->deleteAll();
         $this->bs = SemanticScuttle_Service_Factory::get('Bookmark');
@@ -57,18 +62,6 @@ class TestBaseApi extends TestBase
 
 
 
-    /**
-     * Clean up after test
-     */
-    public function tearDown()
-    {
-        if (file_exists($GLOBALS['datadir'] . '/config.unittest.php')) {
-            unlink($GLOBALS['datadir'] . '/config.unittest.php');
-        }
-    }
-
-
-
     /**
      * Gets a HTTP request object.
      * Uses $this->url plus $urlSuffix as request URL.