[Fusionforge-commits] r10685 - trunk/tests/func

Alain Peyrat aljeux at libremir.placard.fr.eu.org
Sat Sep 25 12:44:13 CEST 2010


Author: aljeux
Date: 2010-09-25 12:44:13 +0200 (Sat, 25 Sep 2010)
New Revision: 10685

Modified:
   trunk/tests/func/db_reload.php
Log:
Remove non fusionforge code in tests (was using a non existing theme)

Modified: trunk/tests/func/db_reload.php
===================================================================
--- trunk/tests/func/db_reload.php	2010-09-25 10:25:50 UTC (rev 10684)
+++ trunk/tests/func/db_reload.php	2010-09-25 10:44:13 UTC (rev 10685)
@@ -107,19 +107,11 @@
 
 $session_hash = '000TESTSUITE000';
 
-// Temporary.
-$sys_default_theme_id = 5;
-
 //set_include_path(".:/opt/gforge/:/opt/gforge/www/include/:/etc/gforge/");
 
 require_once '../../gforge/www/env.inc.php';    
 require_once $gfwww.'include/pre.php';
 
-// Add alcatel theme to the database.
-db_query_params ('INSERT INTO themes (theme_id, dirname, fullname, enabled) VALUES (5, $1, $2, true)',
-		 array ('alcatel-lucent',
-			'Alcatel-Lucent Theme'));
-
 // Install tsearch2 for phpwiki & patch it for safe backups.
 //system("psql -q -Upostgres ".DB_NAME." < /usr/share/pgsql/contrib/tsearch2.sql >/dev/null 2>&1");
 //system("psql -q -Upostgres ".DB_NAME." < /opt/gforge/acde/sql/20080408-regprocedure_update.sql");
@@ -141,7 +133,7 @@
 //
 $user = new GFUser();
 $user_id = $user->create('admin', $sitename, 'Admin', $adminPassword, $adminPassword,
-	$adminEmail, 1, 1, 1,'GMT','',0,$GLOBALS['sys_default_theme_id'],'', '','','','','','US',false, 'admin');
+	$adminEmail, 1, 1, 1,'GMT','',0,1,'', '','','','','','US',false, 'admin');
 
 if (!$user_id) {
 	print "ERROR: Creating user: ".$user->getErrorMessage()."\n";




More information about the Fusionforge-commits mailing list