[ticket/security/210] Fix tests for 3.2.x

SECURITY-210
This commit is contained in:
Marc Alexander 2017-07-16 17:09:06 +02:00
parent 05513b96a4
commit 5b21903e66
No known key found for this signature in database
GPG key ID: 50E0D2423696F995

View file

@ -424,11 +424,10 @@ class phpbb_avatar_manager_test extends \phpbb_database_test_case
'avatar_remote_height' => $height, 'avatar_remote_height' => $height,
)); ));
$user = new \phpbb\user('\phpbb\datetime');
$row = array(); $row = array();
$error = array(); $error = array();
$return = $remote_avatar->process_form($request, null, $user, $row, $error); $return = $remote_avatar->process_form($request, null, $this->user, $row, $error);
if (count($expected_error) > 0) if (count($expected_error) > 0)
{ {
$this->assertFalse($return); $this->assertFalse($return);