public function testLoggedInWithAllParams()
 {
     $this->simulateLogin('*****@*****.**');
     $_GET["sessionKey"] = "1234";
     $option_builders = $this->buildPluginOptions();
     $controller = new FacebookAuthController(true);
     $results = $controller->go();
     //API keys set below are still invalid, so:
     $this->assertPattern('/Invalid API key/', $results);
 }
Exemplo n.º 2
0
<?php

chdir("..");
chdir("..");
require_once 'init.php';
require_once 'plugins/facebook/controller/class.FacebookAuthController.php';
$controller = new FacebookAuthController();
echo $controller->go();