File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -241,14 +241,15 @@ public function test_throwing_exception_if_user_is_not_exist() {
241
241
* Test that auth plugin throws correct exception if we trying to request not existing user.
242
242
*/
243
243
public function test_throwing_exception_if_user_is_suspended () {
244
- global $ USER , $ SESSION ;
244
+ global $ USER ;
245
245
246
246
$ user = $ this ->getDataGenerator ()->create_user ();
247
247
$ user ->suspended = 1 ;
248
248
$ this ->setUser ($ user );
249
249
$ this ->assertEquals ($ USER ->id , $ user ->id );
250
250
251
251
$ this ->create_user_private_key ();
252
+ $ _POST ['key ' ] = 'TestKey ' ;
252
253
253
254
$ this ->expectException (invalid_parameter_exception::class);
254
255
$ this ->expectExceptionMessage ('Invalid parameter value detected (User is suspended) ' );
You can’t perform that action at this time.
0 commit comments