tests/func/News/newsTest.php -text
tests/func/PluginsBlocks/blocksTest.php -text
tests/func/PluginsOnlineHelp/contextualHelpTest.php -text
+tests/func/PluginsScmGit/gitTest.php -text
tests/func/PluginsSvnTracker/trackerTest.php -text
tests/func/RBAC/rbacTest.php -text
tests/func/README.TXT -text
$suite->addTestFiles(glob("func/Forums/*Test.php"));
$suite->addTestFiles(glob("func/News/*Test.php"));
$suite->addTestFiles(glob("func/PluginsBlocks/*Test.php"));
+ $suite->addTestFiles(glob("func/PluginsScmGit/*Test.php"));
$suite->addTestFiles(glob("func/RBAC/*Test.php"));
$suite->addTestFiles(glob("func/Surveys/*Test.php"));
$suite->addTestFiles(glob("func/Search/*Test.php"));
$suite->addTestFiles(glob("func/News/*Test.php"));
$suite->addTestFiles(glob("func/PluginsBlocks/*Test.php"));
$suite->addTestFiles(glob("func/PluginsOnlineHelp/*Test.php"));
+// $suite->addTestFiles(glob("func/PluginsScmGit/*Test.php"));
// $suite->addTestFiles(glob("func/PluginsSvnTracker/*Test.php"));
$suite->addTestFiles(glob("func/RBAC/*Test.php"));
$suite->addTestFiles(glob("func/Surveys/*Test.php"));
$suite->addTestFiles(glob("func/News/*Test.php"));
$suite->addTestFiles(glob("func/PluginsBlocks/*Test.php"));
$suite->addTestFiles(glob("func/PluginsOnlineHelp/*Test.php"));
+// $suite->addTestFiles(glob("func/PluginsScmGit/*Test.php"));
// $suite->addTestFiles(glob("func/PluginsSvnTracker/*Test.php"));
$suite->addTestFiles(glob("func/RBAC/*Test.php"));
$suite->addTestFiles(glob("func/Surveys/*Test.php"));
--- /dev/null
+<?php
+/*
+ * Copyright (C) 2012 Roland Mas
+ *
+ * This file is part of FusionForge.
+ *
+ * FusionForge is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published
+ * by the Free Software Foundation; either version 2 of the License,
+ * or (at your option) any later version.
+ *
+ * FusionForge is distributed in the hope that it will be useful, but
+ * WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with this program; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+require_once dirname(dirname(__FILE__)).'/Testing/SeleniumGforge.php';
+
+class ScmGitTest extends FForge_SeleniumTestCase
+{
+ function testScmGit()
+ {
+ $this->activatePlugin('scmgit');
+ $this->populateStandardTemplate('empty');
+ $this->init();
+
+ $this->open(ROOT);
+ $this->clickAndWait("link=ProjectA");
+ $this->clickAndWait("link=Admin");
+ $this->clickAndWait("link=Tools");
+ $this->clickAndWait("link=Source Code Admin");
+ $this->click("//input[@name='scmradio' and @value='scmgit']");
+ $this->clickAndWait("submit");
+
+ // Run the cronjob to create repositories
+ $this->cron("cronjobs/create_scm_repos.php");
+
+ $this->open(ROOT);
+ $this->clickAndWait("link=ProjectA");
+ $this->clickAndWait("link=SCM");
+
+ $this->assertTextPresent("Anonymous Git Access");
+ $this->clickAndWait("link=Request a personal repository");
+ $this->assertTextPresent("You have now requested a personal Git repository");
+
+ // Run the cronjob to create repositories
+ $this->cron("cronjobs/create_scm_repos.php");
+
+ $this->clickAndWait("link=SCM");
+ $this->assertTextPresent("Access to your personal repository");
+ }
+}
+?>