Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
$query->select('*')
->from('calendar_invitations')
->where($query->expr()->eq('token', $query->createNamedParameter($token)));
- $stmt = $query->execute();
+ $stmt = $query->executeQuery();
$row = $stmt->fetch(\PDO::FETCH_ASSOC);
+ $stmt->closeCursor();
if (!$row) {
return null;
->method('fetch')
->with(\PDO::FETCH_ASSOC)
->willReturn($return);
+ $stmt->expects($this->once())
+ ->method('closeCursor');
$function = 'functionToken';
$expr->expects($this->once())
->with($function)
->willReturn($queryBuilder);
$queryBuilder->expects($this->once())
- ->method('execute')
+ ->method('executeQuery')
->with()
->willReturn($stmt);