@@ -74,6 +74,7 @@ public function __construct()
7474 $ this ->request = new Request ();
7575
7676 $ this ->resetDatabase ();
77+ parent ::__construct ();
7778 }
7879
7980 protected function addXFailedLoginUsernames (int $ number , $ username )
@@ -276,6 +277,32 @@ public function iShouldBeAllowedThrough()
276277 Assert::notEmpty ($ userInfo );
277278 }
278279
280+ /**
281+ * @Then I should have the correct attributes
282+ */
283+ public function iShouldHaveTheCorrectAttributes ()
284+ {
285+ Assert::true (
286+ $ this ->authenticator ->isAuthenticated ()
287+ );
288+ $ userInfo = $ this ->authenticator ->getUserAttributes ();
289+ Assert::keyExists ($ userInfo , "eduPersonPrincipalName " );
290+ Assert::keyExists ($ userInfo , "eduPersonUniqueId " );
291+ Assert::keyExists ($ userInfo , "sn " );
292+ Assert::keyExists ($ userInfo , "givenName " );
293+ Assert::keyExists ($ userInfo , "displayName " );
294+ Assert::keyExists ($ userInfo , "mail " );
295+ Assert::keyExists ($ userInfo , "employeeNumber " );
296+ Assert::keyExists ($ userInfo , "cn " );
297+ Assert::keyExists ($ userInfo , "schacExpiryDate " );
298+ Assert::keyExists ($ userInfo , "mfa " );
299+ Assert::keyExists ($ userInfo , "method " );
300+ Assert::keyExists ($ userInfo , "uuid " );
301+ Assert::keyExists ($ userInfo , "manager_email " );
302+ Assert::keyExists ($ userInfo , "profile_review " );
303+ Assert::keyExists ($ userInfo , "member " );
304+ }
305+
279306 /**
280307 * @When I try to log in enough times to trigger the rate limit
281308 */
0 commit comments