Skip to content

Commit

Permalink
MDL-62241 privacy: Include the unit tests from the 3.3 branch
Browse files Browse the repository at this point in the history
The tests do not actually do anything, they just make sure that the
method signature is correct on the given PHP version. They are mostly
relevant and useful on 3.3.
  • Loading branch information
mudrd8mz committed Apr 27, 2018
1 parent 641d113 commit 15ce5b7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions privacy/tests/manager_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -213,4 +213,18 @@ public function test_get_null_provider_reason() {
$this->expectException(\coding_exception::class);
$string = $manager->get_null_provider_reason('mod_testcomponent');
}

/**
* Test that manager::plugintype_class_callback() can be executed.
*/
public function test_plugintype_class_callback() {
\core_privacy\manager::plugintype_class_callback('doesnotexist', 'unusable', 'foo', ['bar']);
}

/**
* Test that manager::component_class_callback() can be executed.
*/
public function test_component_class_callback() {
\core_privacy\manager::component_class_callback('foo_bar', 'unusable', 'foo', ['bar']);
}
}

0 comments on commit 15ce5b7

Please sign in to comment.