/** * Tests that setting "sign_viewer" = false does not include viewer * information in the request. */ public function testSignedNoViewerRequest() { $token = BasicSecurityToken::createFromValues('owner', 'viewer', 'app', 'domain', 'appUrl', '1', 'default'); $params = new MakeRequestOptions('http://www.example.com'); $params->setAuthz('SIGNED')->setNoCache(true)->setSignViewer(false)->setSecurityTokenString(urldecode($token->toSerialForm())); $request = $this->catchRequest($params, $this->response); $this->assertContains('oauth_signature', $request->getUrl()); $this->assertNotContains('opensocial_viewer_id=viewer', $request->getUrl()); $this->assertContains('opensocial_owner_id=owner', $request->getUrl()); }