mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merge branch 'MDL-55611-master-fix' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
6e58427458
1 changed files with 3 additions and 1 deletions
|
@ -208,7 +208,9 @@ class core_calendar_event_vault_testcase extends advanced_testcase {
|
|||
$user = $this->getDataGenerator()->create_user();
|
||||
// The factory will skip events with even ids.
|
||||
$factory = new action_event_test_factory(function($actionevent) {
|
||||
return ($actionevent->get_id() % 2) ? false : true;
|
||||
static $count = 0;
|
||||
$count++;
|
||||
return ($count % 2) ? true : false;
|
||||
});
|
||||
$strategy = new raw_event_retrieval_strategy();
|
||||
$vault = new event_vault($factory, $strategy);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue