mirror of
https://github.com/moodle/moodle.git
synced 2025-01-17 21:49:15 +01:00
MDL-61858 core_privacy: Add test to ensure component implementations
This commit is contained in:
parent
cef2c013d2
commit
7b4fa14f36
@ -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.
|
||||
*
|
||||
|
Loading…
x
Reference in New Issue
Block a user