MDL-61751 core_privacy: Correct test return
authorAndrew Nicols <andrew@nicols.co.uk>
Sun, 1 Apr 2018 05:34:39 +0000 (13:34 +0800)
committerAndrew Nicols <andrew@nicols.co.uk>
Sun, 1 Apr 2018 05:34:44 +0000 (13:34 +0800)
privacy/tests/legacy_polyfill_test.php

index 1aeb898..17d0f6f 100644 (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);