Fix SSO Auth test (#11155)

Because $dbuser is null here it causes PHP errors when using more strict modes.
So, just test that it is null.
This commit is contained in:
Tony Murray
2020-02-16 16:07:51 -06:00
committed by GitHub
parent 0bc2ea1f45
commit dc9db06dff
+1 -3
View File
@@ -133,9 +133,7 @@ class AuthSSOTest extends DBTestCase
// Retrieve it and validate
$dbuser = $a->getUser($a->getUserid($user));
$this->assertFalse($a->authSSOGetAttr(Config::get('sso.realname_attr')) === $dbuser['realname']);
$this->assertFalse($dbuser['level'] === "0");
$this->assertFalse($a->authSSOGetAttr(Config::get('sso.email_attr')) === $dbuser['email']);
$this->assertNull($dbuser);
}
// Excercise general auth flow with creation enabled