From 7b4fa14f36f99e4886f41374914aa0e398024c3a Mon Sep 17 00:00:00 2001 From: Andrew Nicols Date: Wed, 9 May 2018 19:57:45 +0800 Subject: [PATCH] MDL-61858 core_privacy: Add test to ensure component implementations --- privacy/tests/provider_test.php | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/privacy/tests/provider_test.php b/privacy/tests/provider_test.php index 943d54e7643..496d99678b4 100644 --- a/privacy/tests/provider_test.php +++ b/privacy/tests/provider_test.php @@ -164,6 +164,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. * * @return array -- 2.11.4.GIT