public function testGetTokenByUserNotFound() { $user = $this->getMock('\\OCP\\IUser'); $user->expects($this->once())->method('getUID')->will($this->returnValue('user1000')); $this->assertCount(0, $this->mapper->getTokenByUser($user)); }
/** * Get all token of a user * * The provider may limit the number of result rows in case of an abuse * where a high number of (session) tokens is generated * * @param IUser $user * @return IToken[] */ public function getTokenByUser(IUser $user) { return $this->mapper->getTokenByUser($user); }