3 * Copyright (C) 2012 Roland Mas
5 * This file is part of FusionForge.
7 * FusionForge is free software; you can redistribute it and/or modify
8 * it under the terms of the GNU General Public License as published
9 * by the Free Software Foundation; either version 2 of the License,
10 * or (at your option) any later version.
12 * FusionForge is distributed in the hope that it will be useful, but
13 * WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * General Public License for more details.
17 * You should have received a copy of the GNU General Public License along
18 * with this program; if not, write to the Free Software Foundation, Inc.,
19 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
22 require_once dirname(dirname(__FILE__)).'/Testing/SeleniumGforge.php';
24 class ScmGitTest extends FForge_SeleniumTestCase
28 $this->activatePlugin('scmgit');
29 $this->populateStandardTemplate('empty');
33 $this->clickAndWait("link=ProjectA");
34 $this->clickAndWait("link=Admin");
35 $this->clickAndWait("link=Tools");
36 $this->clickAndWait("link=Source Code Admin");
37 $this->click("//input[@name='scmradio' and @value='scmgit']");
38 $this->clickAndWait("submit");
40 // Run the cronjob to create repositories
41 $this->cron("cronjobs/create_scm_repos.php");
44 $this->clickAndWait("link=ProjectA");
45 $this->clickAndWait("link=SCM");
47 $this->assertTextPresent("Anonymous Git Access");
48 $this->clickAndWait("link=Request a personal repository");
49 $this->assertTextPresent("You have now requested a personal Git repository");
51 // Run the cronjob to create repositories
52 $this->cron("cronjobs/create_scm_repos.php");
54 $this->clickAndWait("link=SCM");
55 $this->assertTextPresent("Access to your personal repository");