mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16:41 +02:00
Merge branch 'MDL-51007-master' of git://github.com/sammarshallou/moodle
This commit is contained in:
commit
583ef1966a
1 changed files with 6 additions and 2 deletions
|
@ -49,7 +49,11 @@ class core_availability_component_testcase extends advanced_testcase {
|
||||||
// fail, but it's obvious when running test at least.
|
// fail, but it's obvious when running test at least.
|
||||||
$pluginmanager = core_plugin_manager::instance();
|
$pluginmanager = core_plugin_manager::instance();
|
||||||
$list = $pluginmanager->get_enabled_plugins('availability');
|
$list = $pluginmanager->get_enabled_plugins('availability');
|
||||||
$this->assertEquals(array('completion', 'date', 'grade', 'group', 'grouping', 'profile'),
|
$this->assertArrayHasKey('completion', $list);
|
||||||
array_keys($list));
|
$this->assertArrayHasKey('date', $list);
|
||||||
|
$this->assertArrayHasKey('grade', $list);
|
||||||
|
$this->assertArrayHasKey('group', $list);
|
||||||
|
$this->assertArrayHasKey('grouping', $list);
|
||||||
|
$this->assertArrayHasKey('profile', $list);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue