Add more Cookie tests (create new StaticCookie class for mocking setcookie())

This commit is contained in:
nupplaPhil 2019-12-09 22:47:08 +01:00
parent a8b89dc486
commit 94a8a60841
No known key found for this signature in database
GPG key ID: D8365C3D36B77D90
4 changed files with 182 additions and 17 deletions

View file

@ -75,7 +75,7 @@ class Authentication
$data = $this->cookie->getData();
// When the "Friendica" cookie is set, take the value to authenticate and renew the cookie.
if (isset($data) && isset($data->uid)) {
if (isset($data->uid)) {
$user = $this->dba->selectFirst(
'user',