mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user