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); }
public function __construct($id) { parent::__construct($id); $this->SessionToken = WebServiceSessionToken::Generate(); $this->SessionExpiration = WebServiceExpiration::Create(); }