Skip to content

Commit

Permalink
MDL-61858 core_privacy: Add test to ensure component implementations
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewnicols authored and mdjnelson committed May 11, 2018
1 parent 5bcf683 commit 039f5b0
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions privacy/tests/provider_test.php
Expand Up @@ -163,6 +163,18 @@ public function test_metadata_provider($component, $classname) {
}
}

/**
* 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.
*
Expand Down

0 comments on commit 039f5b0

Please sign in to comment.