Skip to content

Commit

Permalink
Merge branch 'MDL-47813-master' of git://github.com/xow/moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
marinaglancy authored and stronk7 committed Oct 24, 2014
2 parents 996de18 + 4809376 commit 4ea3258
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions admin/tool/monitor/tests/rule_manager_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ public function test_get_rules_by_courseid() {
$rule = $monitorgenerator->create_rule($record2); // Create rules in a different course.
}
$ruledata = \tool_monitor\rule_manager::get_rules_by_courseid($course1->id);
$this->assertEquals($ruleids, array_keys($ruledata));
$this->assertEmpty(array_merge(array_diff(array_keys($ruledata), $ruleids), array_diff($ruleids, array_keys($ruledata))));
$this->assertCount(20, $ruledata);
}

Expand All @@ -153,7 +153,7 @@ public function test_get_rules_by_plugin() {
}

$ruledata = \tool_monitor\rule_manager::get_rules_by_plugin('core');
$this->assertEquals($ruleids, array_keys($ruledata));
$this->assertEmpty(array_merge(array_diff(array_keys($ruledata), $ruleids), array_diff($ruleids, array_keys($ruledata))));
$this->assertCount(10, $ruledata);
}

Expand Down

0 comments on commit 4ea3258

Please sign in to comment.