public function testConfig()
{
$oldConfig = Libraries::get('li3_facebook');
Libraries::remove('li3_facebook');
Libraries::add('li3_facebook');
FacebookProxy::$_autoConfigure = false;
FacebookProxy::__init();
$this->assertEqual(FacebookProxy::config(), array(), 'config should be empty.');
$this->assertEqual(FacebookProxy::config(array()), array(), 'config should be empty.');
//check ignoring
FacebookProxy::reset();
$result = FacebookProxy::config(array('foo'));
$this->assertTrue($result, array(), 'config should return true');
$this->assertIdentical(FacebookProxy::config(), array(), 'config should be empty');
//check ingoring vs. existing but unset associations
FacebookProxy::reset();
$result = FacebookProxy::config(array('appId'));
$this->assertTrue($result, array(), 'config should return true');
$this->assertIdentical(FacebookProxy::config(), array(), 'config should be empty');
//check valid Settings
FacebookProxy::reset();
$sampleConfig = array('appId' => 'hello');
$result = FacebookProxy::config($sampleConfig);
$this->assertTrue($result, 'config should return true');
$this->assertIdentical(FacebookProxy::config(), $sampleConfig, 'config should not be empty');
//check vs. complete Settings
FacebookProxy::reset();
$result = FacebookProxy::config($this->_mockDefaults);
$this->assertTrue($result, 'config should return true');
$this->assertIdentical(FacebookProxy::config(), $this->_mockDefaults, 'config should not be empty');
Libraries::remove('li3_facebook');
Libraries::add('li3_facebook', $oldConfig);
//FaceBookProxy::foo();
//die(print_r(array($result,FacebookProxy::config()),true));
}