mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
Merge branch 'w20_MDL-32926_m23_phpunitevil' of git://github.com/skodak/moodle
This commit is contained in:
commit
3359a6fe07
6 changed files with 49 additions and 7 deletions
|
@ -70,8 +70,8 @@ class mod_assignment_generator_testcase extends advanced_testcase {
|
|||
$this->assertEquals(GRADE_TYPE_VALUE, $gitem->gradetype);
|
||||
|
||||
// test eventslib integration
|
||||
$this->setUser(2); // admin
|
||||
$this->setAdminUser();
|
||||
$generator->create_instance(array('course'=>$course->id, 'timedue'=>(time()+60*60+24)));
|
||||
$this->setUser(0);
|
||||
$this->setUser(null);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -43,7 +43,7 @@ class workshopform_rubric_strategy_test extends advanced_testcase {
|
|||
* Setup testing environment
|
||||
*/
|
||||
protected function setUp() {
|
||||
parent::setUser();
|
||||
parent::setUp();
|
||||
$cm = new stdclass();
|
||||
$course = new stdclass();
|
||||
$context = new stdclass();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue