Skip to content

Commit

Permalink
MDL-51007 Availability: Unit test fails with extra plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
sammarshallou committed Aug 5, 2015
1 parent 9f405b6 commit 349ed8c
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions availability/tests/component_test.php
Expand Up @@ -49,7 +49,11 @@ public function test_plugin_info() {
// fail, but it's obvious when running test at least.
$pluginmanager = core_plugin_manager::instance();
$list = $pluginmanager->get_enabled_plugins('availability');
$this->assertEquals(array('completion', 'date', 'grade', 'group', 'grouping', 'profile'),
array_keys($list));
$this->assertArrayHasKey('completion', $list);
$this->assertArrayHasKey('date', $list);
$this->assertArrayHasKey('grade', $list);
$this->assertArrayHasKey('group', $list);
$this->assertArrayHasKey('grouping', $list);
$this->assertArrayHasKey('profile', $list);
}
}

0 comments on commit 349ed8c

Please sign in to comment.