From 7086fa746fcba97ffe03df55f49a11b24b35a55a Mon Sep 17 00:00:00 2001 From: rxu Date: Thu, 31 Oct 2024 09:29:25 +0700 Subject: [PATCH] [ticket/17422] Fix tests PHPBB-17422 --- tests/functional/ucp_attachments_test.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/functional/ucp_attachments_test.php b/tests/functional/ucp_attachments_test.php index d8aac88b49..9614911786 100644 --- a/tests/functional/ucp_attachments_test.php +++ b/tests/functional/ucp_attachments_test.php @@ -24,7 +24,8 @@ class phpbb_functional_ucp_attachments_test extends phpbb_functional_test_case $this->path = __DIR__ . '/fixtures/files/'; $this->add_lang('posting'); - if (!$this->user_exists('ucp-file-test')) + $username = 'ucp-file-test'; + if (!$this->user_exists($username)) { $this->create_user('ucp-file-test'); }