-
Bug
-
Resolution: Fixed
-
Minor
-
3.9.2
-
MOODLE_39_STABLE
-
MOODLE_310_STABLE, MOODLE_39_STABLE
-
MDL-70102-master -
There is a test:
tests\course\services_content_item_service_testcase.test_get_all_content_items
It includes this code:
// The call to get_all_content_items() should return the same items as for the course,
|
// given the user in an editing teacher and can add manual lti instances.
|
$this->assertEquals(array_column($allcontentitems, 'name'), array_column($coursecontentitems, 'name'));
|
The effect of this is that if you have any custom activity module plugins which define unusual default values for their addinstance capability, in which 'editingteacher' archetype does NOT get the capability by default (e.g. set the archetypes array to empty), then the test fails.
We are setting it as a known failure in our infrastructure, but it would be nice if the test were changed so it didn't do that (e.g. could filter both lists of plugins to include only selected/all core plugins). To be honest I don't know what it's really supposed to be testing but I haven't looked in detail...