function FbconnectTestCase::createFbTestUser in Facebook Connect 6.2
@todo.
4 calls to FbconnectTestCase::createFbTestUser()
- FbconnectTestCase::testFastRegistration in tests/
fbconnect.test - @todo.
- FbconnectTestCase::testLinking in tests/
fbconnect.test - @todo.
- FbconnectTestCase::testLogin in tests/
fbconnect.test - @todo.
- FbconnectTestCase::testRegistration in tests/
fbconnect.test - @todo.
File
- tests/
fbconnect.test, line 30
Class
- FbconnectTestCase
- @file
Code
function createFbTestUser($installed = 'true', $permissions = '') {
$conf = fbconnect_get_config();
fbconnect_facebook_client()
->setSession(NULL, FALSE);
$url = "/{$conf['app_id']}/accounts/test-users?installed={$installed}&permissions={$permissions}";
$fb_user = fbconnect_graph_query($url, 'POST');
$this->fb_users[] = $fb_user;
$this
->verbose('createFbTestUser: fb_user=' . var_export($fb_user, TRUE));
$this
->assertTrue(isset($fb_user['id']), 'created test FB user', 'FBConnect');
return $fb_user;
}