Lines Matching refs:ruledata
71 $ruledata = \tool_monitor\rule_manager::add_rule($rule);
73 $this->assertEquals($ruledata->$prop, $value);
101 $ruledata = new stdClass;
102 $ruledata->id = $rule->id;
103 $ruledata->frequency = 25;
105 \tool_monitor\rule_manager::update_rule($ruledata);
106 $this->assertEquals(25, $ruledata->frequency);
136 $ruledata = \tool_monitor\rule_manager::get_rules_by_courseid($course1->id);
137 …sertEmpty(array_merge(array_diff(array_keys($ruledata), $ruleids), array_diff($ruleids, array_keys…
138 $this->assertCount(20, $ruledata);
163 $ruledata = \tool_monitor\rule_manager::get_rules_by_plugin('core');
164 …sertEmpty(array_merge(array_diff(array_keys($ruledata), $ruleids), array_diff($ruleids, array_keys…
165 $this->assertCount(10, $ruledata);
191 … $ruledata = \tool_monitor\rule_manager::get_rules_by_event('\core\event\calendar_event_created');
192 $this->assertEmpty(array_diff(array_keys($ruledata), $ruleids));
193 $this->assertCount(10, $ruledata);