public function setup()
 {
     parent::setup();
     WebServiceSessionToken::$_Token = 'hard coded token';
     $this->fakeAuth = new FakeAuth();
     $this->userSessionRepository = $this->getMock('IUserSessionRepository');
     $this->webAuth = new WebServiceAuthentication($this->fakeAuth, $this->userSessionRepository);
 }
Example #2
0
 public function __construct($id)
 {
     parent::__construct($id);
     $this->SessionToken = WebServiceSessionToken::Generate();
     $this->SessionExpiration = WebServiceExpiration::Create();
 }