Add improvements to unit tests

This commit is contained in:
Romain Neutron
2013-12-19 12:08:59 +01:00
parent 49ea64b1c3
commit 6c45e8d40a
39 changed files with 583 additions and 689 deletions

View File

@@ -142,7 +142,7 @@ class API_OAuth2_Token
$stmt->execute($params);
$stmt->closeCursor();
$this->session_id = (int) $session_id;
$this->session_id = $session_id !== null ? (int) $session_id : $session_id;
return $this;
}