1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-03-14 20:50:30 +01:00

[ticket/16604] Do not test avatar upload directory permissions on Windows

PHPBB3-16604
This commit is contained in:
rxu 2020-09-22 18:59:04 +07:00
parent f4287e1f56
commit 4698d20fb4
No known key found for this signature in database
GPG Key ID: 955F0567380E586A

View File

@ -53,6 +53,9 @@ class phpbb_functional_acp_avatar_settings_test extends phpbb_functional_test_ca
$this->assertContainsLang('AVATAR_NO_UPLOAD_PATH', $crawler->filter('div[class="errorbox"] > p')->text());
// Test avatar upload path became not writable on the server afterwards
// Unix tests only
if (!defined('PHP_WINDOWS_VERSION_MAJOR'))
{
$crawler = self::request('GET', 'adm/index.php?i=acp_board&mode=avatar&sid=' . $this->sid);
$form = $crawler->selectButton($this->lang('SUBMIT'))->form();
$values = $form->getValues();
@ -76,4 +79,5 @@ class phpbb_functional_acp_avatar_settings_test extends phpbb_functional_test_ca
$this->assertNotContainsLang('AVATAR_NO_UPLOAD_DIR', $this->get_content());
$this->assertNotContainsLang('AVATAR_NO_UPLOAD_PATH', $this->get_content());
}
}
}