function FbconnectTestCase::testFastRegistration in Facebook Connect 6.2
Same name and namespace in other branches
- 8.2 tests/fbconnect.test \FbconnectTestCase::testFastRegistration()
- 7.2 tests/fbconnect.test \FbconnectTestCase::testFastRegistration()
@todo.
File
- tests/
fbconnect.test, line 147
Class
- FbconnectTestCase
- @file
Code
function testFastRegistration() {
variable_set('fbconnect_fast_reg', 1);
variable_set('fbconnect_reg_options', 1);
$fb_user = $this
->createFbTestUser('true', 'email');
$edit = array(
'fbuid' => $fb_user['id'],
'access_token' => $fb_user['access_token'],
);
$this
->drupalPost('fbconnect-test/init-fb-session', $edit, 'Submit');
$this
->assertFieldByName('fbuid', $fb_user['id'], 'FB Session inited', 'FBConnect');
$this
->drupalPost('', array(), 'Connect');
$this
->assertLink('My account', 0, 'User is logged in', 'FBConnect');
}