public function setUp () { global $test_nonadmin_uid; global $test_non_general_contest, $test_non_general_contest_problem; /* create a contest */ $this->contest = $test_non_general_contest; $this->problem = $test_non_general_contest_problem; webconfig::$multi_contest = true; parent::setUp (); system ("../backend/admin/addcontest.php --id {$this->contest} --name TestContest --start-time '-1 hour' --duration '2 hours' --quiet"); $this->login ($test_nonadmin_uid); }
public function setUp () { global $test_nonadmin_uid1; global $test_non_general_contest; global $test_non_general_contest_problem; $this->contest = $test_non_general_contest; $this->problem = $test_non_general_contest_problem; parent::setUp (); /* create a contest */ system ("../backend/admin/addcontest.php --id {$this->contest} --name TestContest --start-time '-10 minutes' --duration '9 minutes' --quiet"); webconfig::$multi_contest = true; }
public function setUp () { global $test_nonadmin_uid1; parent::setUp (); $this->login ($test_nonadmin_uid1); }
public function setUp () { parent::setUp (); }
public function setUp () { webconfig::$allow_register = false; parent::setUp (); }