MDL-61751 core_privacy: Correct test return

This commit is contained in:
Andrew Nicols
2018-04-01 13:36:57 +08:00
parent 458c700143
commit c7640874bf
+1 -2
View File
@@ -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);