projects
/
fusionforge
/
fusionforge.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Backport from trunk: Ported testsuite to use cronjob wrapper
[fusionforge/fusionforge.git]
/
tests
/
func
/
Testing
/
SeleniumGforge.php
diff --git
a/tests/func/Testing/SeleniumGforge.php
b/tests/func/Testing/SeleniumGforge.php
index 5f3e20c65af227de36df080a47982cb79b0eb429..883f9ac669c866a8359759d5530fec08262b0af2 100644
(file)
--- a/
tests/func/Testing/SeleniumGforge.php
+++ b/
tests/func/Testing/SeleniumGforge.php
@@
-78,7
+78,12
@@
class FForge_SeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase
protected function cron($cmd)
{
protected function cron($cmd)
{
- system("/usr/bin/php -q /usr/share/gforge/$cmd");
+ $this->runCommand(RUN_JOB_PATH."forge_run_job $cmd");
+ }
+
+ protected function cron_for_plugin($cmd, $plugin)
+ {
+ $this->runCommand(RUN_JOB_PATH."forge_run_plugin_job $plugin $cmd");
}
protected function init() {
}
protected function init() {
@@
-251,7
+256,7
@@
class FForge_SeleniumTestCase extends PHPUnit_Extensions_SeleniumTestCase
$this->init($project, $user);
// Run manually the cron for creating the svn structure.
$this->init($project, $user);
// Run manually the cron for creating the svn structure.
- $this->cron("cr
onjobs/cr
eate_scm_repos.php");
+ $this->cron("create_scm_repos.php");
}
protected function login($username)
}
protected function login($username)