public function setUpSessionApp($env = array(), $fbId, $fbEmail, $facebookOnly = FALSE)
 {
     parent::setUpApp($env);
     $fbData = new \stdClass();
     $fbData->id = $fbId;
     if (!empty($fbEmail)) {
         $fbData->email = $fbEmail;
     }
     $fbData->first_name = 'photis';
     $fbData->last_name = 'patriotis';
     $this->app->setConfig('FacebookSessionMockData', $fbData);
     $this->fbIdentityExtension = new FacebookIdentity($this->app, new Identity($this->app, new RESTAccess($this->app)), $facebookOnly);
     $this->app->addExtension($this->fbIdentityExtension);
 }
 public function setUpApp($env = array(), $withCache = false)
 {
     parent::setUpApp($env, $withCache);
     $identityExtension = new Identity($this->app, new RESTAccess($this->app));
     $this->app->addExtension($identityExtension);
 }