public function testFindEmailLinkThrowsWhenExpired() { $this->setExpectedException('Del\\Exception\\EmailLinkException', EmailLinkException::LINK_EXPIRED); $user = $this->svc->createFromArray($this->getUserArray('testFindEmailLinkThrowsWhenExpired')); $this->user = $this->svc->saveUser($user); $this->link = $this->svc->generateEmailLink($this->user, -8); $token = $this->link->getToken(); $this->svc->findEmailLink($user->getEmail(), $token); }
public function testGetSetToken() { $this->link->setToken('blah'); $this->assertEquals('blah', $this->link->getToken()); }