mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-26 11:30:22 +02:00
[ticket/16604] Do not test avatar upload directory permissions on Windows
PHPBB3-16604
This commit is contained in:
@@ -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());
|
$this->assertContainsLang('AVATAR_NO_UPLOAD_PATH', $crawler->filter('div[class="errorbox"] > p')->text());
|
||||||
|
|
||||||
// Test avatar upload path became not writable on the server afterwards
|
// 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);
|
$crawler = self::request('GET', 'adm/index.php?i=acp_board&mode=avatar&sid=' . $this->sid);
|
||||||
$form = $crawler->selectButton($this->lang('SUBMIT'))->form();
|
$form = $crawler->selectButton($this->lang('SUBMIT'))->form();
|
||||||
$values = $form->getValues();
|
$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_DIR', $this->get_content());
|
||||||
$this->assertNotContainsLang('AVATAR_NO_UPLOAD_PATH', $this->get_content());
|
$this->assertNotContainsLang('AVATAR_NO_UPLOAD_PATH', $this->get_content());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user