@@ -14,44 +14,26 @@ private function assertNumberGroupRequests(int $x)
14
14
15
15
private function requestGroupCreation ()
16
16
{
17
- $ redirectedOrDied = false ;
18
- try {
19
- http_post (
20
- __DIR__ . "/../../webroot/panel/new_account.php " ,
21
- ["new_user_sel " => "pi " , "eula " => "agree " , "confirm_pi " => "agree " ]
22
- );
23
- } catch (\UnityWebPortal \lib \exceptions \PhpUnitNoDieException ) {
24
- $ redirectedOrDied = true ;
25
- }
26
- $ this ->assertTrue ($ redirectedOrDied );
17
+ http_post (
18
+ __DIR__ . "/../../webroot/panel/new_account.php " ,
19
+ ["new_user_sel " => "pi " , "eula " => "agree " , "confirm_pi " => "agree " ]
20
+ );
27
21
}
28
22
29
23
private function requestGroupMembership (string $ gid )
30
24
{
31
- $ redirectedOrDied = false ;
32
- try {
33
- http_post (
34
- __DIR__ . "/../../webroot/panel/new_account.php " ,
35
- ["new_user_sel " => "not_pi " , "eula " => "agree " , "pi " => $ gid ]
36
- );
37
- } catch (\UnityWebPortal \lib \exceptions \PhpUnitNoDieException ) {
38
- $ redirectedOrDied = true ;
39
- }
40
- $ this ->assertTrue ($ redirectedOrDied );
25
+ http_post (
26
+ __DIR__ . "/../../webroot/panel/new_account.php " ,
27
+ ["new_user_sel " => "not_pi " , "eula " => "agree " , "pi " => $ gid ]
28
+ );
41
29
}
42
30
43
31
private function cancelAllRequests ()
44
32
{
45
- $ redirectedOrDied = false ;
46
- try {
47
- http_post (
48
- __DIR__ . "/../../webroot/panel/new_account.php " ,
49
- ["cancel " => "true " ] // value of cancel is arbitrary
50
- );
51
- } catch (\UnityWebPortal \lib \exceptions \PhpUnitNoDieException ) {
52
- $ redirectedOrDied = true ;
53
- }
54
- $ this ->assertTrue ($ redirectedOrDied );
33
+ http_post (
34
+ __DIR__ . "/../../webroot/panel/new_account.php " ,
35
+ ["cancel " => "true " ] // value of cancel is arbitrary
36
+ );
55
37
}
56
38
57
39
// delete requests made by that user
0 commit comments