From fdfaba4607be827a63648c5103e84b96c8e85290 Mon Sep 17 00:00:00 2001 From: Marc Alexander Date: Fri, 4 Apr 2014 20:55:29 +0200 Subject: [PATCH] [ticket/10851] Request index instead of logging in and out in tests PHPBB3-10851 --- tests/functional/fileupload_form_test.php | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/functional/fileupload_form_test.php b/tests/functional/fileupload_form_test.php index eaa6d634a5..30f6fd7b47 100644 --- a/tests/functional/fileupload_form_test.php +++ b/tests/functional/fileupload_form_test.php @@ -98,9 +98,8 @@ class phpbb_functional_fileupload_form_test extends phpbb_functional_test_case $form->setValues($values); $crawler = self::submit($form); - // Logout and back in for correct URL - $this->logout(); - $this->login(); + // Request index for correct URL + $crawler = self::request('GET', 'index.php?sid=' . $this->sid); $crawler = $this->upload_file('disallowed.jpg', 'image/jpeg');