public function testVerifyWithToken() { $request = array('url' => 'request', 'params' => array('oauth_consumer_key' => 'key', 'oauth_nonce' => '4d31073c8ce205ecd3145d6cc0a3a4f6', 'oauth_signature' => '10xRa+G7ql3KjDgZySmn5NqNLqQ=', 'oauth_signature_method' => 'HMAC-SHA1', 'oauth_timestamp' => '1259606608', 'oauth_version' => '1.0'), 'token' => array('oauth_token' => 'request_token', 'oauth_token_secret' => 'request_secret')); $result = Provider::verify($request); $this->assertTrue($result); }
public function account() { $token = Provider::create('consumer'); Provider::store($token->oauth_consumer_key, $token); return compact('token'); }