MDL-61858 core_privacy: Add test to ensure component implementations

This commit is contained in:
Andrew Nicols 2018-05-09 19:57:45 +08:00 committed by Mark Nelson
parent cef2c013d2
commit 7b4fa14f36

View File

@ -163,6 +163,18 @@ class provider_testcase extends advanced_testcase {
}
}
/**
* Test that all providers implement some form of compliant provider.
*
* @dataProvider get_component_list
* @param string $component frankenstyle component name, e.g. 'mod_assign'
* @param string $classname the fully qualified provider classname
*/
public function test_all_providers_compliant($component, $classname) {
$manager = new manager();
$this->assertTrue($manager->component_is_compliant($component));
}
/**
* Data provider for the metadata\provider tests.
*