[Fusionforge-commits] r8600 - in trunk/tests/func: News Site Tasks Testing

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Fri Dec 18 21:44:59 CET 2009


Author: aljeux
Date: 2009-12-18 21:44:59 +0100 (Fri, 18 Dec 2009)
New Revision: 8600

Modified:
   trunk/tests/func/News/AllTests.php
   trunk/tests/func/Site/AllTests.php
   trunk/tests/func/Tasks/AllTests.php
   trunk/tests/func/Testing/SeleniumGforge.php
Log:
Minor changes in test suite

Modified: trunk/tests/func/News/AllTests.php
===================================================================
--- trunk/tests/func/News/AllTests.php	2009-12-18 20:44:40 UTC (rev 8599)
+++ trunk/tests/func/News/AllTests.php	2009-12-18 20:44:59 UTC (rev 8600)
@@ -64,7 +64,6 @@
         $suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');
  
         $suite->addTestSuite('CreateNews');
-        // ...
  
         return $suite;
     }

Modified: trunk/tests/func/Site/AllTests.php
===================================================================
--- trunk/tests/func/Site/AllTests.php	2009-12-18 20:44:40 UTC (rev 8599)
+++ trunk/tests/func/Site/AllTests.php	2009-12-18 20:44:59 UTC (rev 8600)
@@ -72,7 +72,6 @@
         
         // FIXME: Do not run this test as it requires the cron to be launched
         //        $suite->addTestSuite('Top');
-        // ...
  
         return $suite;
     }

Modified: trunk/tests/func/Tasks/AllTests.php
===================================================================
--- trunk/tests/func/Tasks/AllTests.php	2009-12-18 20:44:40 UTC (rev 8599)
+++ trunk/tests/func/Tasks/AllTests.php	2009-12-18 20:44:59 UTC (rev 8600)
@@ -64,7 +64,6 @@
         $suite = new PHPUnit_Framework_TestSuite('PHPUnit Framework');
  
         $suite->addTestSuite('ExportCSV');
-        // ...
  
         return $suite;
     }

Modified: trunk/tests/func/Testing/SeleniumGforge.php
===================================================================
--- trunk/tests/func/Testing/SeleniumGforge.php	2009-12-18 20:44:40 UTC (rev 8599)
+++ trunk/tests/func/Testing/SeleniumGforge.php	2009-12-18 20:44:59 UTC (rev 8600)
@@ -46,7 +46,6 @@
 require_once 'func/config.php';
 require_once 'PHPUnit/Extensions/SeleniumTestCase.php';
 
-// New class to use, next one is now obsolete.
 class FForge_SeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase
 {
     protected function setUp()
@@ -92,6 +91,12 @@
 		$this->open( BASE ."/account/logout.php" );
 		$this->waitForPageToLoad("30000");
 	}
+	
+	protected function switchUser($username)
+	{
+		$this->logout();
+		$this->login($username);
+	}
 
 	protected function createProject ($name) {
 		$unix_name = strtolower($name);
@@ -131,12 +136,6 @@
 		$this->assertTrue($this->isTextPresent("This is the public description for $name."));
 		$this->assertTrue($this->isTextPresent("This project has not yet categorized itself"));
 	}
-
-	protected function swithUser($username)
-	{
-		$this->logout();
-		$this->login($username);
-	}
 	
 	protected function createUser ($login, $id)
 	{




More information about the Fusionforge-commits mailing list