function FbconnectTestCase::tearDown in Facebook Connect 8.2
Same name and namespace in other branches
- 6.2 tests/fbconnect.test \FbconnectTestCase::tearDown()
- 7.2 tests/fbconnect.test \FbconnectTestCase::tearDown()
File
- tests/
fbconnect.test, line 76
Class
- FbconnectTestCase
- @file
Code
function tearDown() {
parent::tearDown();
$facebook_config = fbconnect_get_config();
unset($_SESSION['fbconnect_token']);
unset($_COOKIE['fbconnect_token_' . $facebook_config['app_id']]);
foreach ($this->_fb_users as $fb_user) {
$result = fbconnect_graph_query('/' . $fb_user['id'], array(), 'DELETE', TRUE)
->asArray();
$this
->assertEqual($result['success'], TRUE, 'deleted test FB user', 'FBConnect');
}
$this->_fb_users = array();
}