mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/16604] Do not test avatar upload directory permissions on Windows
PHPBB3-16604
This commit is contained in:
parent
f4287e1f56
commit
4698d20fb4
1 changed files with 24 additions and 20 deletions
|
@ -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());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue