From 677953067f2bb5502a70f0d004f1ac844b18a128 Mon Sep 17 00:00:00 2001 From: emkael Date: Mon, 16 Jan 2017 22:04:43 +0100 Subject: * Facebook support --- .../FooFacebookClientForOAuth2Test.php | 58 ++++++++++++++++++++++ 1 file changed, 58 insertions(+) create mode 100644 lib/facebook-graph-sdk/tests/Authentication/FooFacebookClientForOAuth2Test.php (limited to 'lib/facebook-graph-sdk/tests/Authentication/FooFacebookClientForOAuth2Test.php') diff --git a/lib/facebook-graph-sdk/tests/Authentication/FooFacebookClientForOAuth2Test.php b/lib/facebook-graph-sdk/tests/Authentication/FooFacebookClientForOAuth2Test.php new file mode 100644 index 0000000..1199b00 --- /dev/null +++ b/lib/facebook-graph-sdk/tests/Authentication/FooFacebookClientForOAuth2Test.php @@ -0,0 +1,58 @@ +response = '{"data":{"user_id":"444"}}'; + } + + public function setAccessTokenResponse() + { + $this->response = '{"access_token":"my_access_token","expires":"1422115200"}'; + } + + public function setCodeResponse() + { + $this->response = '{"code":"my_neat_code"}'; + } + + public function sendRequest(FacebookRequest $request) + { + return new FacebookResponse( + $request, + $this->response, + 200, + [] + ); + } +} -- cgit v1.2.3