public function testDeleteByIdWrongUser()
 {
     $user = $this->getMock('\\OCP\\IUser');
     $id = 33;
     $user->expects($this->once())->method('getUID')->will($this->returnValue('user10000'));
     $this->mapper->deleteById($user, $id);
     $this->assertEquals(3, $this->getNumberOfTokens());
 }
 /**
  * Invalidate (delete) the given token
  *
  * @param IUser $user
  * @param int $id
  */
 public function invalidateTokenById(IUser $user, $id)
 {
     $this->mapper->deleteById($user, $id);
 }