Skip to content

Commit 3a8f23c

Browse files
committed
[BUG] test case lacks info
1 parent 156fe20 commit 3a8f23c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/auth_plugin_test.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -241,14 +241,15 @@ public function test_throwing_exception_if_user_is_not_exist() {
241241
* Test that auth plugin throws correct exception if we trying to request not existing user.
242242
*/
243243
public function test_throwing_exception_if_user_is_suspended() {
244-
global $USER, $SESSION;
244+
global $USER;
245245

246246
$user = $this->getDataGenerator()->create_user();
247247
$user->suspended = 1;
248248
$this->setUser($user);
249249
$this->assertEquals($USER->id, $user->id);
250250

251251
$this->create_user_private_key();
252+
$_POST['key'] = 'TestKey';
252253

253254
$this->expectException(invalid_parameter_exception::class);
254255
$this->expectExceptionMessage('Invalid parameter value detected (User is suspended)');

0 commit comments

Comments
 (0)