Home
Documentation
Downloads
Demo
Tracker
Development
Translation
Moodle.net
Search
projects
/
moodle.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
605528e
)
MDL-61751 core_privacy: Correct test return
author
Andrew Nicols
<andrew@nicols.co.uk>
Sun, 1 Apr 2018 05:34:39 +0000
(13:34 +0800)
committer
Andrew Nicols
<andrew@nicols.co.uk>
Sun, 1 Apr 2018 05:34:44 +0000
(13:34 +0800)
privacy/tests/legacy_polyfill_test.php
patch
|
blob
|
blame
|
history
diff --git
a/privacy/tests/legacy_polyfill_test.php
b/privacy/tests/legacy_polyfill_test.php
index
1aeb898
..
17d0f6f
100644
(file)
--- a/
privacy/tests/legacy_polyfill_test.php
+++ b/
privacy/tests/legacy_polyfill_test.php
@@
-66,8
+66,7
@@
class core_privacy_legacy_polyfill_test extends advanced_testcase {
$mock = $this->createMock(test_legacy_polyfill_mock_wrapper::class);
$mock->expects($this->once())
->method('get_return_value')
- ->with('_export_user_preferences', [$userid])
- ->willReturn(null);
+ ->with('_export_user_preferences', [$userid]);
test_legacy_polyfill_user_preference_provider::$mock = $mock;
test_legacy_polyfill_user_preference_provider::export_user_preferences($userid);