You are here

function FbconnectTestCase::setUp in Facebook Connect 6.2

Same name and namespace in other branches
  1. 8.2 tests/fbconnect.test \FbconnectTestCase::setUp()
  2. 7.2 tests/fbconnect.test \FbconnectTestCase::setUp()

Implementation of setUp().

Overrides DrupalWebTestCase::setUp

File

tests/fbconnect.test, line 48

Class

FbconnectTestCase
@file

Code

function setUp() {
  if (!fbconnect_facebook_client()) {
    $this
      ->error('fbconnect is not properly installed. See README.txt');
    return;
  }
  $this->settings_keys = array(
    'fbconnect_appid',
    'fbconnect_skey',
  );
  foreach ($this->settings_keys as $key) {
    $this->settings[$key] = variable_get($key, NULL);
  }
  parent::setUp('libraries', 'fbconnect', 'fbconnect_test');
  foreach ($this->settings as $key => $value) {
    variable_set($key, $value);
  }
}