@@ -6,28 +6,24 @@ class PageLoadTest extends UnityWebPortalTestCase
66{
77 public static function provider ()
88 {
9- $ admin = getAdminUser ();
10- $ nonexistent_user = getNonExistentUser ();
11- $ normal_user = getNormalUser ();
12- $ pi = getUserIsPIHasNoMembersNoMemberRequests ();
139 return [
14- [$ admin , __DIR__ . "/../../webroot/admin/pi-mgmt.php " ],
15- [$ admin , __DIR__ . "/../../webroot/admin/user-mgmt.php " ],
16- [$ admin , __DIR__ . "/../../webroot/admin/content.php " ],
17- [$ admin , __DIR__ . "/../../webroot/admin/notices.php " ],
18- [$ nonexistent_user , __DIR__ . "/../../webroot/panel/new_account.php " ],
19- [$ normal_user , __DIR__ . "/../../webroot/panel/account.php " ],
20- [$ normal_user , __DIR__ . "/../../webroot/panel/groups.php " ],
21- [$ normal_user , __DIR__ . "/../../webroot/panel/support.php " ],
22- [$ pi , __DIR__ . "/../../webroot/panel/pi.php " ],
10+ [" Admin " , __DIR__ . "/../../webroot/admin/pi-mgmt.php " ],
11+ [" Admin " , __DIR__ . "/../../webroot/admin/user-mgmt.php " ],
12+ [" Admin " , __DIR__ . "/../../webroot/admin/content.php " ],
13+ [" Admin " , __DIR__ . "/../../webroot/admin/notices.php " ],
14+ [" NonExistent " , __DIR__ . "/../../webroot/panel/new_account.php " ],
15+ [" Normal " , __DIR__ . "/../../webroot/panel/account.php " ],
16+ [" Normal " , __DIR__ . "/../../webroot/panel/groups.php " ],
17+ [" Normal " , __DIR__ . "/../../webroot/panel/support.php " ],
18+ [" IsPIHasNoMembersNoMemberRequests " , __DIR__ . "/../../webroot/panel/pi.php " ],
2319 ];
2420 }
2521
2622 #[DataProvider("provider " )]
27- public function testLoadPage ($ user , $ path )
23+ public function testLoadPage ($ nickname , $ path )
2824 {
2925 global $ USER , $ SSO , $ LDAP , $ SQL , $ MAILER , $ WEBHOOK ;
30- switchuser (... $ user );
26+ $ this -> switchUser ( $ nickname );
3127 http_get ($ path );
3228 $ this ->assertTrue (true ); // assert there were no errors
3329 }
0 commit comments